mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Refactored exports.
This commit is contained in:
parent
1baf4d5571
commit
8bddc666b4
110 changed files with 317 additions and 124 deletions
|
|
@ -5,7 +5,7 @@ import useLocale from 'hooks/useLocale';
|
|||
import Icons from 'components/icons';
|
||||
import styles from './LanguageButton.module.css';
|
||||
|
||||
export default function LanguageButton() {
|
||||
export function LanguageButton() {
|
||||
const { locale, saveLocale, dir } = useLocale();
|
||||
const items = Object.keys(languages).map(key => ({ ...languages[key], value: key }));
|
||||
|
||||
|
|
@ -43,3 +43,5 @@ export default function LanguageButton() {
|
|||
</PopupTrigger>
|
||||
);
|
||||
}
|
||||
|
||||
export default LanguageButton;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue