Skip to content

Commit 55d4d60

Browse files
authored
move static images to different folder (metlo-labs#82)
1 parent 58daeec commit 55d4d60

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

frontend/src/components/ConnectionInfo/aws.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const AWS_INFO: React.FC<AWS_INFOInterface> = ({
126126
<Button aria-label="See on aws" bg={"transparent"} p={0}>
127127
<Image
128128
alt={`AWS-image`}
129-
src={`../connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
129+
src={`/static-images/connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
130130
/>
131131
</Button>
132132
</Link>
@@ -147,7 +147,7 @@ const AWS_INFO: React.FC<AWS_INFOInterface> = ({
147147
<Button aria-label="See on aws" bg={"transparent"} p={0}>
148148
<Image
149149
alt={`AWS-image`}
150-
src={`../connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
150+
src={`/static-images/connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
151151
/>
152152
</Button>
153153
</Link>
@@ -168,7 +168,7 @@ const AWS_INFO: React.FC<AWS_INFOInterface> = ({
168168
<Button aria-label="See on aws" bg={"transparent"} p={0}>
169169
<Image
170170
alt={`AWS-image`}
171-
src={`../connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
171+
src={`/static-images/connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
172172
/>
173173
</Button>
174174
</Link>
@@ -189,7 +189,7 @@ const AWS_INFO: React.FC<AWS_INFOInterface> = ({
189189
<Button aria-label="See on aws" bg={"transparent"} p={0}>
190190
<Image
191191
alt={`AWS-image`}
192-
src={`../connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
192+
src={`/static-images/connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
193193
/>
194194
</Button>
195195
</Link>

frontend/src/components/ConnectionInfo/gcp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const GCP_INFO: React.FC<GCP_INFOInterface> = ({
153153
<Button aria-label="See on aws" bg={"transparent"} p={0}>
154154
<Image
155155
alt={`AWS-image`}
156-
src={`../connections/${ConnectionType.GCP}_${colorMode.colorMode}.svg`}
156+
src={`/static-images/connections/${ConnectionType.GCP}_${colorMode.colorMode}.svg`}
157157
/>
158158
</Button>
159159
</Link>
@@ -192,7 +192,7 @@ const GCP_INFO: React.FC<GCP_INFOInterface> = ({
192192
<Button aria-label="See on aws" bg={"transparent"} p={0}>
193193
<Image
194194
alt={`AWS-image`}
195-
src={`../connections/${ConnectionType.GCP}_${colorMode.colorMode}.svg`}
195+
src={`/static-images/connections/${ConnectionType.GCP}_${colorMode.colorMode}.svg`}
196196
/>
197197
</Button>
198198
</Link>

frontend/src/components/ConnectionList/List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const ConnectionList: React.FC<ConnectionListProps> = React.memo(
8181
<Image
8282
alt={`${row.connectionType}-image`}
8383
height="8"
84-
src={`connections/${row.connectionType}_${colorMode.colorMode}.svg`}
84+
src={`/static-images/connections/${row.connectionType}_${colorMode.colorMode}.svg`}
8585
/>
8686
),
8787
id: "icon",

frontend/src/components/Logo.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ interface LogoProps extends BoxProps {
1111
export const Logo: React.FC<LogoProps> = React.memo(
1212
({ imageHeight, imageWidth, ...props }) => {
1313
const imageSrc = useColorModeValue(
14-
"/metlo_logo_horiz.svg",
15-
"/metlo_logo_horiz_negative.svg",
14+
"/static-images/metlo_logo_horiz.svg",
15+
"/static-images/metlo_logo_horiz_negative.svg",
1616
)
1717
return (
1818
<Box {...props}>
@@ -30,7 +30,7 @@ export const Logo: React.FC<LogoProps> = React.memo(
3030
export const SmLogo = React.memo((props: BoxProps) => {
3131
return (
3232
<Box {...props}>
33-
<Image alt="logo-image" height="30" width="30" src="/metlo_logo.svg" />
33+
<Image alt="logo-image" height="30" width="30" src="/static-images/metlo_logo.svg" />
3434
</Box>
3535
)
3636
})

frontend/src/components/NewConnection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const NewConnection = ({ isOpen, onClose }) => {
3434
<Image
3535
alt={`AWS-image`}
3636
boxSize={"125px"}
37-
src={`connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
37+
src={`/static-images/connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
3838
/>
3939
</Button>
4040
</NextLink>
@@ -43,7 +43,7 @@ const NewConnection = ({ isOpen, onClose }) => {
4343
<Image
4444
alt={`GCP-image`}
4545
boxSize={"125px"}
46-
src={`connections/${ConnectionType.GCP}_${colorMode.colorMode}.svg`}
46+
src={`/static-images/connections/${ConnectionType.GCP}_${colorMode.colorMode}.svg`}
4747
/>
4848
</Button>
4949
</NextLink>

0 commit comments

Comments
 (0)