Skip to content

Commit

Permalink
Added britain flag (#30)
Browse files Browse the repository at this point in the history
* feat(pages/element): added britain flag for krypton

* refactor(pages/elements): remove replace flag to empty space function
  • Loading branch information
GervinFung authored May 5, 2024
1 parent e81f050 commit c1ecdfe
Show file tree
Hide file tree
Showing 4 changed files 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/test/snapshot/snapshot-images/pc/elements/krypton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c1ecdfe

Please sign in to comment.