mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 13:11:23 +00:00
Update I18nWidget.tsx
Widget image outside button fixed
This commit is contained in:
parent
58287a5ec3
commit
8a2b4be939
@ -43,12 +43,13 @@ const I18nWidget: FC = () => {
|
|||||||
return (
|
return (
|
||||||
<nav className={s.root}>
|
<nav className={s.root}>
|
||||||
<div className="flex items-center relative">
|
<div className="flex items-center relative">
|
||||||
<button className={s.button} aria-label="Language selector" />
|
<button className={s.button} aria-label="Language selector">
|
||||||
<img
|
<img
|
||||||
className="block mr-2 w-5"
|
className="block mr-2 w-5"
|
||||||
src={`/${LOCALES_MAP[currentLocale].img.filename}`}
|
src={`/${LOCALES_MAP[currentLocale].img.filename}`}
|
||||||
alt={LOCALES_MAP[currentLocale].img.alt}
|
alt={LOCALES_MAP[currentLocale].img.alt}
|
||||||
/>
|
/>
|
||||||
|
</button>
|
||||||
{options && (
|
{options && (
|
||||||
<span className="cursor-pointer" onClick={() => setDisplay(!display)}>
|
<span className="cursor-pointer" onClick={() => setDisplay(!display)}>
|
||||||
<svg
|
<svg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user