Skip to content

Commit

Permalink
feat: remove flag for change language emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Oct 7, 2024
1 parent a265e0a commit 8c2d88f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import { LANGUAGES } from '../constants/languages';
import { useDarkMode } from '../helpers/dark-mode';
import { useHelpModal } from '../helpers/help-modal';

const DEFAULT_LANGUAGE = LANGUAGES[0];

const HEADER_BUTTON_PROPS = {
size: 'sm',
isIconOnly: true,
Expand All @@ -29,8 +27,6 @@ const HEADER_BUTTON_PROPS = {

export const Header = () => {
const { t, i18n } = useTranslation();
const currentLanguage =
LANGUAGES.find((l) => l.code === i18n.language) ?? DEFAULT_LANGUAGE;

const openHelpModal = useHelpModal((s) => s.open);

Expand Down Expand Up @@ -87,9 +83,7 @@ export const Header = () => {
>
<div>
<PopoverTrigger>
<Button {...HEADER_BUTTON_PROPS} className="font-noto-emoji">
{currentLanguage.flag}
</Button>
<Button {...HEADER_BUTTON_PROPS}>🌐</Button>
</PopoverTrigger>
</div>
</Tooltip>
Expand Down
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
@tailwind components;
@tailwind utilities;

body {
* {
font-family: 'Outfit Variable', sans-serif;
}

0 comments on commit 8c2d88f

Please sign in to comment.