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