diff --git a/web/app/components/base/select/locale-signin.tsx b/web/app/components/base/select/locale-signin.tsx new file mode 100644 index 000000000..48dbee1ca --- /dev/null +++ b/web/app/components/base/select/locale-signin.tsx @@ -0,0 +1,61 @@ +'use client' +import { Menu, MenuButton, MenuItem, MenuItems, Transition } from '@headlessui/react' +import { Fragment } from 'react' +import { GlobeAltIcon } from '@heroicons/react/24/outline' + +type ISelectProps = { + items: Array<{ value: string; name: string }> + value?: string + className?: string + onChange?: (value: string) => void +} + +export default function LocaleSigninSelect({ + items, + value, + onChange, +}: ISelectProps) { + const item = items.filter(item => item.value === value)[0] + + return ( +
+ +
+ + +
+ + +
+ {items.map((item) => { + return + + + })} + +
+ +
+
+
+
+ ) +} diff --git a/web/app/signin/_header.tsx b/web/app/signin/_header.tsx index 03e05924b..731a229b8 100644 --- a/web/app/signin/_header.tsx +++ b/web/app/signin/_header.tsx @@ -1,7 +1,7 @@ 'use client' import React from 'react' import { useContext } from 'use-context-selector' -import Select from '@/app/components/base/select/locale' +import LocaleSigninSelect from '@/app/components/base/select/locale-signin' import Divider from '@/app/components/base/divider' import { languages } from '@/i18n-config/language' import type { Locale } from '@/i18n-config' @@ -33,7 +33,7 @@ const Header = () => { /> : }
-