1
0
Fork 0
This commit is contained in:
Enoch Riese 2022-07-02 11:27:39 -05:00
parent 9997fc528a
commit e6cfde4f18
5 changed files with 29 additions and 15 deletions

View file

@ -2,7 +2,6 @@ import themes from 'shared/themes/index.js'
import ThemeIcon from 'shared/components/icons/theme.js'
import { useTranslation } from 'next-i18next'
import {Picker, PickerButton} from './picker';
import { Menu } from '@headlessui/react'
const ThemePicker = ({ app, className, iconOnly=false }) => {
const { t } = useTranslation(['themes'])
@ -16,7 +15,8 @@ const ThemePicker = ({ app, className, iconOnly=false }) => {
className,
iconOnly,
Icon: ThemeIcon,
title: t(`${app.theme}Theme`)
title: t(`${app.theme}Theme`),
ariaLabel: t('themesPicker')
}
return (<Picker {...pickerProps}>
{Object.keys(themes).map(theme => (