Update I18nWidget.tsx

Widget image outside button fixed
This commit is contained in:
Regaron 2020-11-29 08:39:16 +05:45 committed by GitHub
parent 58287a5ec3
commit 8a2b4be939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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