mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 05:01:22 +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 (
|
||||
<nav className={s.root}>
|
||||
<div className="flex items-center relative">
|
||||
<button className={s.button} aria-label="Language selector" />
|
||||
<button className={s.button} aria-label="Language selector">
|
||||
<img
|
||||
className="block mr-2 w-5"
|
||||
src={`/${LOCALES_MAP[currentLocale].img.filename}`}
|
||||
alt={LOCALES_MAP[currentLocale].img.alt}
|
||||
/>
|
||||
</button>
|
||||
{options && (
|
||||
<span className="cursor-pointer" onClick={() => setDisplay(!display)}>
|
||||
<svg
|
||||
|
Loading…
x
Reference in New Issue
Block a user