mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 17:26:26 +01:00
♻️ Move preferences in router
This commit is contained in:
@@ -108,14 +108,14 @@ export const MainLayout = ({ children }: MainLayoutProps) => {
|
|||||||
/>
|
/>
|
||||||
</NavLink>
|
</NavLink>
|
||||||
<NavLink
|
<NavLink
|
||||||
label="Preferences"
|
label="Settings"
|
||||||
icon={
|
icon={
|
||||||
<ThemeIcon size="md" variant="light" color="red">
|
<ThemeIcon size="md" variant="light" color="red">
|
||||||
<IconSettings2 size="1rem" />
|
<IconSettings2 size="1rem" />
|
||||||
</ThemeIcon>
|
</ThemeIcon>
|
||||||
}
|
}
|
||||||
component={Link}
|
component={Link}
|
||||||
href="/manage/preferences"
|
href="/manage/settings"
|
||||||
/>
|
/>
|
||||||
<NavLink
|
<NavLink
|
||||||
label="Help"
|
label="Help"
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ export const AvatarMenu = () => {
|
|||||||
<>
|
<>
|
||||||
<Menu.Item
|
<Menu.Item
|
||||||
component={Link}
|
component={Link}
|
||||||
href="/manage/preferences"
|
href="/user/preferences"
|
||||||
icon={<IconUserCog size="1rem" />}
|
icon={<IconUserCog size="1rem" />}
|
||||||
>
|
>
|
||||||
Settings
|
User preferences
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
<Menu.Item component={Link} href="/board" icon={<IconDashboard size="1rem" />}>
|
<Menu.Item component={Link} href="/board" icon={<IconDashboard size="1rem" />}>
|
||||||
Default Dashboard
|
Default Dashboard
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ const ManagementPage = () => {
|
|||||||
</Group>
|
</Group>
|
||||||
</Card>
|
</Card>
|
||||||
</UnstyledButton>
|
</UnstyledButton>
|
||||||
<UnstyledButton component={Link} href="/manage/preferences">
|
<UnstyledButton component={Link} href="/user/preferences">
|
||||||
<Card className={classes.quickActionCard}>
|
<Card className={classes.quickActionCard}>
|
||||||
<Group spacing={30} noWrap>
|
<Group spacing={30} noWrap>
|
||||||
<Stack spacing={0}>
|
<Stack spacing={0}>
|
||||||
|
|||||||
18
src/pages/manage/settings/index.tsx
Normal file
18
src/pages/manage/settings/index.tsx
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import { Title, Text } from '@mantine/core';
|
||||||
|
import { MainLayout } from '~/components/layout/admin/main-admin.layout';
|
||||||
|
import { CommonHeader } from '~/components/layout/common-header';
|
||||||
|
|
||||||
|
const SettingsPage = () => {
|
||||||
|
return (
|
||||||
|
<MainLayout>
|
||||||
|
<CommonHeader>
|
||||||
|
<title>Settings • Homarr</title>
|
||||||
|
</CommonHeader>
|
||||||
|
|
||||||
|
<Title>Settings</Title>
|
||||||
|
<Text>Coming soon!</Text>
|
||||||
|
</MainLayout>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default SettingsPage;
|
||||||
@@ -182,6 +182,9 @@ export const userRouter = createTRPCRouter({
|
|||||||
email: input.email,
|
email: input.email,
|
||||||
password: hashedPassword,
|
password: hashedPassword,
|
||||||
salt: salt,
|
salt: salt,
|
||||||
|
settings: {
|
||||||
|
create: {}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user