mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-01 16:37:39 +01:00
Correct nepal flag
This commit is contained in:
parent
d9063f22c9
commit
e9aee9e7e8
1 changed files with 6 additions and 1 deletions
|
@ -22,6 +22,7 @@ const countryOverrides: Record<string, string> = {
|
||||||
sl: "si",
|
sl: "si",
|
||||||
sv: "se",
|
sv: "se",
|
||||||
et: "ee",
|
et: "ee",
|
||||||
|
ne: "np",
|
||||||
};
|
};
|
||||||
|
|
||||||
export function FlagIcon(props: FlagIconProps) {
|
export function FlagIcon(props: FlagIconProps) {
|
||||||
|
@ -48,10 +49,14 @@ export function FlagIcon(props: FlagIconProps) {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
let backgroundClass = "bg-video-context-flagBg";
|
||||||
|
if (countryCode === "np") backgroundClass = "bg-white";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span
|
<span
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"!w-8 h-6 rounded overflow-hidden bg-video-context-flagBg bg-cover bg-center block fi",
|
"!w-8 h-6 rounded overflow-hidden bg-cover bg-center block fi",
|
||||||
|
backgroundClass,
|
||||||
props.countryCode ? `fi-${countryCode}` : undefined,
|
props.countryCode ? `fi-${countryCode}` : undefined,
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue