diff --git a/studio/components/LanguageSelector.tsx b/studio/components/LanguageSelector.tsx index ff6a394a0..3d85ed4d8 100644 --- a/studio/components/LanguageSelector.tsx +++ b/studio/components/LanguageSelector.tsx @@ -1,6 +1,7 @@ -import { Box, Button, Card, Checkbox, Flex, Text, useTheme } from "@sanity/ui"; +import { Box, Button, Card, Checkbox, Flex, useTheme } from "@sanity/ui"; import React, { useMemo } from "react"; import { PatchEvent, set } from "sanity"; + import { Language, supportedLanguages, @@ -68,47 +69,52 @@ const LanguageSelector = ({ value = [], onChange }: LanguageSelectorProps) => { : colorMap[themeType].default; return ( - handleLanguageSelection(lang)} - > - - - - - + + + {isSelected && ( + + + + )} - {isSelected && ( - - - - )} - - + + ); }), - [value, currentDefaultLanguage, themeType] + [value, currentDefaultLanguage, themeType], ); return (