Update hospital-portal

This commit is contained in:
ivan
2023-07-31 11:32:25 +07:00
parent 786a0a24b3
commit 0a214723cb
2 changed files with 25 additions and 1 deletions

View File

@@ -53,7 +53,23 @@ export default function LanguagePopover() {
...(open && { bgcolor: 'action.selected' }),
}}
>
<Image disabledEffect src={require(!localStorage.getItem('currentLocale') ? LANGS[0].icon : (localStorage.getItem('currentLocale') === 'id-ID' ? LANGS[0].icon : LANGS[1].icon))} alt={!localStorage.getItem('currentLocale') ? LANGS[0].label : (localStorage.getItem('currentLocale') === 'id-ID' ? LANGS[0].label : LANGS[1].label)} />
<Image
disabledEffect
src={(
!localStorage.getItem('currentLocale')
? LANGS[0].icon
: localStorage.getItem('currentLocale') === 'id-ID'
? LANGS[0].icon
: LANGS[1].icon
)}
alt={
!localStorage.getItem('currentLocale')
? LANGS[0].label
: localStorage.getItem('currentLocale') === 'id-ID'
? LANGS[0].label
: LANGS[1].label
}
/>
</IconButtonAnimate>