Skip to content

Commit 01e9db1

Browse files
authored
Merge pull request #249 from keithchong/10078-UpdateAppSetIcon
fix: Update AppSet Icon (#10078)
2 parents cdadfac + def3900 commit 01e9db1

2 files changed

Lines changed: 6 additions & 43 deletions

File tree

src/gitops/components/appset/graph/nodes/ApplicationSetNode.tsx

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { observer } from 'mobx-react';
44
import SvgTextWithOverflow from '@gitops/components/graph/SvgTextWithOverflow';
55
import { dangerColor, successColor, warningColor } from '@gitops/utils/components/Icons/Icons';
66
import { HealthStatus } from '@gitops/utils/constants';
7-
import ApplicationIcon from '@images/resources/application.svg';
7+
import ApplicationSetIcon from '@images/resources/applicationset.svg';
88
import { Tooltip } from '@patternfly/react-core';
99
import {
1010
GhostIcon,
@@ -102,54 +102,14 @@ const ApplicationSetShape: React.FunctionComponent<ShapeProps> = observer(
102102
stroke="var(--pf-topology__node__background--Stroke)"
103103
strokeWidth="2"
104104
/>
105-
<foreignObject
106-
x={-24}
107-
y={12}
108-
width={16}
109-
height={28}
110-
color="var(--pf-topology__node__background--Stroke)"
111-
>
112-
<div
113-
style={{
114-
fontSize: '24px',
115-
width: '16px',
116-
height: '24px',
117-
display: 'flex',
118-
alignItems: 'center',
119-
justifyContent: 'center',
120-
}}
121-
>
122-
{`{`}
123-
</div>
124-
</foreignObject>
125-
<ApplicationIcon
105+
<ApplicationSetIcon
126106
className={className}
127107
x={-12}
128108
y={0}
129109
width={50}
130110
height={50}
131-
style={{ fill: 'var(--pf-topology__node__background--Stroke)' }}
111+
style={{ color: 'var(--pf-topology__node__background--Stroke)' }}
132112
/>
133-
<foreignObject
134-
x={34}
135-
y={12}
136-
width={16}
137-
height={28} // style={{ transform: 'scale(200)'}}
138-
color="var(--pf-topology__node__background--Stroke)"
139-
>
140-
<div
141-
style={{
142-
fontSize: '24px',
143-
width: '16px',
144-
height: '24px',
145-
display: 'flex',
146-
alignItems: 'center',
147-
justifyContent: 'center',
148-
}}
149-
>
150-
{`}`}
151-
</div>
152-
</foreignObject>
153113
</g>
154114
<g>
155115
<svg
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)