Update hospital-portal
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user