mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 05:01:22 +00:00
Update I18nWidget.tsx
This commit is contained in:
parent
dba58ba989
commit
e367fd97ab
@ -72,7 +72,7 @@ const I18nWidget: FC = () => {
|
|||||||
<div className="absolute top-0 right-0">
|
<div className="absolute top-0 right-0">
|
||||||
{options?.length && display ? (
|
{options?.length && display ? (
|
||||||
<div className={s.dropdownMenu}>
|
<div className={s.dropdownMenu}>
|
||||||
<div className="flex flex-row justify-end px-2 mt-2">
|
<div className="flex flex-row justify-end px-4 pt-2">
|
||||||
<button
|
<button
|
||||||
onClick={() => setDisplay(false)}
|
onClick={() => setDisplay(false)}
|
||||||
aria-label="Close panel"
|
aria-label="Close panel"
|
||||||
@ -88,8 +88,8 @@ const I18nWidget: FC = () => {
|
|||||||
<a className={cn(s.item)} onClick={() => setDisplay(false)}>
|
<a className={cn(s.item)} onClick={() => setDisplay(false)}>
|
||||||
<img
|
<img
|
||||||
className="block mr-2 w-5"
|
className="block mr-2 w-5"
|
||||||
src={`/${LOCALES_MAP[currentLocale].img.filename}`}
|
src={`/${LOCALES_MAP[locale].img.filename}`}
|
||||||
alt={LOCALES_MAP[currentLocale].img.alt}
|
alt={LOCALES_MAP[locale].img.alt}
|
||||||
/>
|
/>
|
||||||
{LOCALES_MAP[locale].name}
|
{LOCALES_MAP[locale].name}
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user