mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 17:26:26 +01:00
✨ Add preferences page to navbar
This commit is contained in:
@@ -30,6 +30,7 @@ import {
|
||||
IconLogout,
|
||||
IconMailForward,
|
||||
IconQuestionMark,
|
||||
IconSettings2,
|
||||
IconSun,
|
||||
IconUser,
|
||||
IconUserSearch,
|
||||
@@ -94,6 +95,14 @@ export const MainLayout = ({ children }: MainLayoutProps) => {
|
||||
href="/manage/users/invites"
|
||||
/>
|
||||
</NavLink>
|
||||
<NavLink
|
||||
label="Preferences"
|
||||
icon={
|
||||
<ThemeIcon size="md" variant="light" color="red">
|
||||
<IconSettings2 size="1rem" />
|
||||
</ThemeIcon>
|
||||
}
|
||||
/>
|
||||
<NavLink
|
||||
label="Help"
|
||||
icon={
|
||||
|
||||
@@ -13,6 +13,7 @@ import { IconArrowRight } from '@tabler/icons-react';
|
||||
import { useSession } from 'next-auth/react';
|
||||
import Head from 'next/head';
|
||||
import Image from 'next/image';
|
||||
import Link from 'next/link';
|
||||
import { MainLayout } from '~/components/layout/admin/main-admin.layout';
|
||||
import { useScreenLargerThan } from '~/hooks/useScreenLargerThan';
|
||||
|
||||
@@ -85,7 +86,7 @@ const ManagementPage = () => {
|
||||
</Group>
|
||||
</Card>
|
||||
</UnstyledButton>
|
||||
<UnstyledButton>
|
||||
<UnstyledButton component={Link} href="/manage/user/invites">
|
||||
<Card className={classes.quickActionCard}>
|
||||
<Group spacing={30} noWrap>
|
||||
<Stack spacing={0}>
|
||||
@@ -96,7 +97,7 @@ const ManagementPage = () => {
|
||||
</Group>
|
||||
</Card>
|
||||
</UnstyledButton>
|
||||
<UnstyledButton>
|
||||
<UnstyledButton component={Link} href="/manage/preferences">
|
||||
<Card className={classes.quickActionCard}>
|
||||
<Group spacing={30} noWrap>
|
||||
<Stack spacing={0}>
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
import { Title } from "@mantine/core";
|
||||
import { MainLayout } from "~/components/layout/admin/main-admin.layout";
|
||||
import { Title } from '@mantine/core';
|
||||
import Head from 'next/head';
|
||||
import { MainLayout } from '~/components/layout/admin/main-admin.layout';
|
||||
|
||||
const PreferencesPage = () => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Title>Preferences</Title>
|
||||
</MainLayout>
|
||||
)
|
||||
}
|
||||
return (
|
||||
<MainLayout>
|
||||
<Head>
|
||||
<title>Preferences • Homarr</title>
|
||||
</Head>
|
||||
<Title>Preferences</Title>
|
||||
</MainLayout>
|
||||
);
|
||||
};
|
||||
|
||||
export default PreferencesPage
|
||||
export default PreferencesPage;
|
||||
|
||||
Reference in New Issue
Block a user