Skip to content

Commit

Permalink
refactor(pages/elements): remove replace flag to empty space function
Browse files Browse the repository at this point in the history
  • Loading branch information
GervinFung committed May 4, 2024
1 parent 40d0b60 commit 3b8df05
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions apps/web/pages/elements/[name]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Box from '@mui/joy/Box';
import Grid from '@mui/joy/Grid';
import Stack from '@mui/joy/Stack';
import Typography from '@mui/joy/Typography';
import Tooltip from '@mui/joy/Tooltip';

import { parse, string, union, number } from 'valibot';

Expand Down Expand Up @@ -739,14 +740,21 @@ const listOfProperties = (props: GetStaticPropsType) => {
<Stack direction="row" spacing={2}>
{element.countries.map((country) => {
return (
<Image
<Tooltip
key={country.name}
priority
alt={country.name}
src={`${constants.images.generated.country}/${country.svg}`}
height={country.height}
width={country.width}
/>
title={country.name}
variant="outlined"
size="sm"
enterTouchDelay={0}
>
<Image
priority
alt={country.name}
src={`${constants.images.generated.country}/${country.svg}`}
height={country.height}
width={country.width}
/>
</Tooltip>
);
})}
</Stack>
Expand Down

0 comments on commit 3b8df05

Please sign in to comment.