Update I18nWidget.tsx

This commit is contained in:
Regaron 2020-11-30 09:29:42 +05:45 committed by GitHub
parent 8a2b4be939
commit 55db8f240f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,6 @@ const I18nWidget: FC = () => {
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
@ -67,6 +66,7 @@ const I18nWidget: FC = () => {
</svg> </svg>
</span> </span>
)} )}
</button>
</div> </div>
<div className="absolute top-0 right-0"> <div className="absolute top-0 right-0">
{options?.length && display ? ( {options?.length && display ? (