mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
975b4dcaab
* auth pages layout * exclude home route from redirect * fix margin
27 lines
594 B
TypeScript
27 lines
594 B
TypeScript
import React from "react";
|
|
import { Group, Text } from "@mantine/core";
|
|
import classes from "./auth.module.css";
|
|
|
|
type AuthLayoutProps = {
|
|
children: React.ReactNode;
|
|
};
|
|
|
|
export function AuthLayout({ children }: AuthLayoutProps) {
|
|
return (
|
|
<>
|
|
<Group justify="center" gap={8} className={classes.logo}>
|
|
<img
|
|
src="/icons/favicon-32x32.png"
|
|
alt="Docmost"
|
|
width={22}
|
|
height={22}
|
|
/>
|
|
<Text size="28px" fw={700} style={{ userSelect: "none" }}>
|
|
Docmost
|
|
</Text>
|
|
</Group>
|
|
{children}
|
|
</>
|
|
);
|
|
}
|