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
|
||||
label="Preferences"
|
||||
label="Settings"
|
||||
icon={
|
||||
<ThemeIcon size="md" variant="light" color="red">
|
||||
<IconSettings2 size="1rem" />
|
||||
</ThemeIcon>
|
||||
}
|
||||
component={Link}
|
||||
href="/manage/preferences"
|
||||
href="/manage/settings"
|
||||
/>
|
||||
<NavLink
|
||||
label="Help"
|
||||
|
||||
@@ -43,10 +43,10 @@ export const AvatarMenu = () => {
|
||||
<>
|
||||
<Menu.Item
|
||||
component={Link}
|
||||
href="/manage/preferences"
|
||||
href="/user/preferences"
|
||||
icon={<IconUserCog size="1rem" />}
|
||||
>
|
||||
Settings
|
||||
User preferences
|
||||
</Menu.Item>
|
||||
<Menu.Item component={Link} href="/board" icon={<IconDashboard size="1rem" />}>
|
||||
Default Dashboard
|
||||
|
||||
@@ -86,7 +86,7 @@ const ManagementPage = () => {
|
||||
</Group>
|
||||
</Card>
|
||||
</UnstyledButton>
|
||||
<UnstyledButton component={Link} href="/manage/preferences">
|
||||
<UnstyledButton component={Link} href="/user/preferences">
|
||||
<Card className={classes.quickActionCard}>
|
||||
<Group spacing={30} noWrap>
|
||||
<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,
|
||||
password: hashedPassword,
|
||||
salt: salt,
|
||||
settings: {
|
||||
create: {}
|
||||
},
|
||||
},
|
||||
});
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user