Browse Source

Move flags into flag directory

pull/713/head
William Oldham 2 years ago
parent
commit
38fe8df228
  1. 0
      public/flags/skull.svg
  2. 0
      public/flags/tokiPona.svg
  3. 4
      src/components/FlagIcon.tsx

0
public/skull.svg → public/flags/skull.svg

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

0
public/tokiPona.svg → public/flags/tokiPona.svg

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

4
src/components/FlagIcon.tsx

@ -15,14 +15,14 @@ export function FlagIcon(props: FlagIconProps) { @@ -15,14 +15,14 @@ export function FlagIcon(props: FlagIconProps) {
if (props.langCode === "tok")
return (
<div className="w-8 h-6 rounded bg-[#c8e1ed] flex justify-center items-center">
<img src="/tokiPona.svg" className="w-7 h-5" />
<img src="/flags/tokiPona.svg" className="w-7 h-5" />
</div>
);
if (props.langCode === "pirate")
return (
<div className="w-8 h-6 rounded bg-[#2E3439] flex justify-center items-center">
<img src="/skull.svg" className="w-4 h-4" />
<img src="/flags/skull.svg" className="w-4 h-4" />
</div>
);

Loading…
Cancel
Save