Skip to content

Commit

Permalink
move static images to different folder (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay288 authored Nov 8, 2022
1 parent 58daeec commit 55d4d60
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
8 changes: 4 additions & 4 deletions frontend/src/components/ConnectionInfo/aws.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const AWS_INFO: React.FC<AWS_INFOInterface> = ({
<Button aria-label="See on aws" bg={"transparent"} p={0}>
<Image
alt={`AWS-image`}
src={`../connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
src={`/static-images/connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
/>
</Button>
</Link>
Expand All @@ -147,7 +147,7 @@ const AWS_INFO: React.FC<AWS_INFOInterface> = ({
<Button aria-label="See on aws" bg={"transparent"} p={0}>
<Image
alt={`AWS-image`}
src={`../connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
src={`/static-images/connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
/>
</Button>
</Link>
Expand All @@ -168,7 +168,7 @@ const AWS_INFO: React.FC<AWS_INFOInterface> = ({
<Button aria-label="See on aws" bg={"transparent"} p={0}>
<Image
alt={`AWS-image`}
src={`../connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
src={`/static-images/connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
/>
</Button>
</Link>
Expand All @@ -189,7 +189,7 @@ const AWS_INFO: React.FC<AWS_INFOInterface> = ({
<Button aria-label="See on aws" bg={"transparent"} p={0}>
<Image
alt={`AWS-image`}
src={`../connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
src={`/static-images/connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
/>
</Button>
</Link>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/ConnectionInfo/gcp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const GCP_INFO: React.FC<GCP_INFOInterface> = ({
<Button aria-label="See on aws" bg={"transparent"} p={0}>
<Image
alt={`AWS-image`}
src={`../connections/${ConnectionType.GCP}_${colorMode.colorMode}.svg`}
src={`/static-images/connections/${ConnectionType.GCP}_${colorMode.colorMode}.svg`}
/>
</Button>
</Link>
Expand Down Expand Up @@ -192,7 +192,7 @@ const GCP_INFO: React.FC<GCP_INFOInterface> = ({
<Button aria-label="See on aws" bg={"transparent"} p={0}>
<Image
alt={`AWS-image`}
src={`../connections/${ConnectionType.GCP}_${colorMode.colorMode}.svg`}
src={`/static-images/connections/${ConnectionType.GCP}_${colorMode.colorMode}.svg`}
/>
</Button>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ConnectionList/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const ConnectionList: React.FC<ConnectionListProps> = React.memo(
<Image
alt={`${row.connectionType}-image`}
height="8"
src={`connections/${row.connectionType}_${colorMode.colorMode}.svg`}
src={`/static-images/connections/${row.connectionType}_${colorMode.colorMode}.svg`}
/>
),
id: "icon",
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ interface LogoProps extends BoxProps {
export const Logo: React.FC<LogoProps> = React.memo(
({ imageHeight, imageWidth, ...props }) => {
const imageSrc = useColorModeValue(
"/metlo_logo_horiz.svg",
"/metlo_logo_horiz_negative.svg",
"/static-images/metlo_logo_horiz.svg",
"/static-images/metlo_logo_horiz_negative.svg",
)
return (
<Box {...props}>
Expand All @@ -30,7 +30,7 @@ export const Logo: React.FC<LogoProps> = React.memo(
export const SmLogo = React.memo((props: BoxProps) => {
return (
<Box {...props}>
<Image alt="logo-image" height="30" width="30" src="/metlo_logo.svg" />
<Image alt="logo-image" height="30" width="30" src="/static-images/metlo_logo.svg" />
</Box>
)
})
4 changes: 2 additions & 2 deletions frontend/src/components/NewConnection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const NewConnection = ({ isOpen, onClose }) => {
<Image
alt={`AWS-image`}
boxSize={"125px"}
src={`connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
src={`/static-images/connections/${ConnectionType.AWS}_${colorMode.colorMode}.svg`}
/>
</Button>
</NextLink>
Expand All @@ -43,7 +43,7 @@ const NewConnection = ({ isOpen, onClose }) => {
<Image
alt={`GCP-image`}
boxSize={"125px"}
src={`connections/${ConnectionType.GCP}_${colorMode.colorMode}.svg`}
src={`/static-images/connections/${ConnectionType.GCP}_${colorMode.colorMode}.svg`}
/>
</Button>
</NextLink>
Expand Down

0 comments on commit 55d4d60

Please sign in to comment.