mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 21:27:20 +01:00
Remove className locale
This commit is contained in:
parent
d80739a203
commit
d7734d0493
5 changed files with 6 additions and 14 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Icon, Button, PopupTrigger, Popup, Text } from 'react-basics';
|
||||
import { Icon, Button, PopupTrigger, Popup } from 'react-basics';
|
||||
import classNames from 'classnames';
|
||||
import { languages } from 'lib/lang';
|
||||
import { useLocale } from 'components/hooks';
|
||||
|
|
@ -33,7 +33,7 @@ export function LanguageButton() {
|
|||
className={classNames(styles.item, { [styles.selected]: value === locale })}
|
||||
onClick={(e: any) => handleSelect(value, close, e)}
|
||||
>
|
||||
<Text>{label}</Text>
|
||||
<span lang={value}>{label}</span>
|
||||
{value === locale && (
|
||||
<Icon className={styles.icon}>
|
||||
<Icons.Check />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue