Updated tables. Added MenuButton.

This commit is contained in:
Mike Cao
2025-05-07 04:10:27 -07:00
parent 92b283486e
commit a15c7cd596
27 changed files with 334 additions and 207 deletions

View File

@@ -19,7 +19,7 @@ export function LanguageSetting() {
const handleReset = () => saveLocale(DEFAULT_LOCALE);
const handleOpen = isOpen => {
const handleOpen = (isOpen: boolean) => {
if (isOpen) {
setSearch('');
}

View File

@@ -1,6 +1,6 @@
import { Button, Icon, Text, useToast, DialogTrigger, Dialog, Modal } from '@umami/react-zen';
import { PasswordEditForm } from './PasswordEditForm';
import { Icons } from '@/components/icons';
import { Lucide } from '@/components/icons';
import { useMessages } from '@/components/hooks';
export function PasswordChangeButton() {
@@ -15,7 +15,7 @@ export function PasswordChangeButton() {
<DialogTrigger>
<Button>
<Icon fillColor="currentColor">
<Icons.Lock />
<Lucide.LockKeyhole />
</Icon>
<Text>{formatMessage(labels.changePassword)}</Text>
</Button>

View File

@@ -1,5 +1,5 @@
import { Row, Button, Icon, useTheme } from '@umami/react-zen';
import { Icons } from '@/components/icons';
import { Lucide } from '@/components/icons';
export function ThemeSetting() {
const { theme, setTheme } = useTheme();
@@ -10,13 +10,13 @@ export function ThemeSetting() {
variant={theme === 'light' ? 'primary' : 'secondary'}
onPress={() => setTheme('light')}
>
<Icon fillColor="currentColor">
<Icons.Sun />
<Icon>
<Lucide.Sun />
</Icon>
</Button>
<Button variant={theme === 'dark' ? 'primary' : 'secondary'} onPress={() => setTheme('dark')}>
<Icon fillColor="currentColor">
<Icons.Moon />
<Icon>
<Lucide.Moon />
</Icon>
</Button>
</Row>