fix: lint

This commit is contained in:
hamster1963
2024-11-23 19:34:05 +08:00
parent 963b6a54a6
commit 3275ea9211
6 changed files with 54 additions and 57 deletions

View File

@@ -11,7 +11,6 @@ export default function ServerFlag({
}) {
const [supportsEmojiFlags, setSupportsEmojiFlags] = useState(false);
useEffect(() => {
const checkEmojiSupport = () => {
const canvas = document.createElement("canvas");
@@ -38,7 +37,7 @@ export default function ServerFlag({
return (
<span className={cn("text-[12px] text-muted-foreground", className)}>
{ !supportsEmojiFlags ? (
{!supportsEmojiFlags ? (
<span className={`fi fi-${country_code}`} />
) : (
getUnicodeFlagIcon(country_code)