diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 1cd0b83..f194f8c 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -95,7 +95,7 @@ const items = [ }, ]; -export default function Layout({ children, user }) { +export default function Layout({ children, user, title }) { const [token, setToken] = useState(user?.token); const [systemTheme, setSystemTheme] = useState(user.systemTheme ?? 'system'); const [opened, setOpened] = useState(false); // navigation open @@ -288,7 +288,7 @@ export default function Layout({ children, user }) { color={theme.colors.gray[6]} /> - Zipline + {title} diff --git a/src/pages/dashboard/index.tsx b/src/pages/dashboard/index.tsx index 9e9ef0c..9c8e7b4 100644 --- a/src/pages/dashboard/index.tsx +++ b/src/pages/dashboard/index.tsx @@ -18,6 +18,7 @@ export default function DashboardPage({ title, meta }) { diff --git a/src/pages/dashboard/invites.tsx b/src/pages/dashboard/invites.tsx index 7425f6e..91b4f07 100644 --- a/src/pages/dashboard/invites.tsx +++ b/src/pages/dashboard/invites.tsx @@ -18,6 +18,7 @@ export default function InvitesPage({ title }) { diff --git a/src/pages/dashboard/manage.tsx b/src/pages/dashboard/manage.tsx index 64d4805..888cd95 100644 --- a/src/pages/dashboard/manage.tsx +++ b/src/pages/dashboard/manage.tsx @@ -18,6 +18,7 @@ export default function ManagePage({ title }) { diff --git a/src/pages/dashboard/stats.tsx b/src/pages/dashboard/stats.tsx index bcf8823..bd118de 100644 --- a/src/pages/dashboard/stats.tsx +++ b/src/pages/dashboard/stats.tsx @@ -18,6 +18,7 @@ export default function StatsPage({ title }) { diff --git a/src/pages/dashboard/text.tsx b/src/pages/dashboard/text.tsx index 6519d0c..2976a6d 100644 --- a/src/pages/dashboard/text.tsx +++ b/src/pages/dashboard/text.tsx @@ -18,6 +18,7 @@ export default function UploadTextPage({ title }) { diff --git a/src/pages/dashboard/upload.tsx b/src/pages/dashboard/upload.tsx index a29b7f5..ab731e1 100644 --- a/src/pages/dashboard/upload.tsx +++ b/src/pages/dashboard/upload.tsx @@ -18,6 +18,7 @@ export default function UploadPage({ title }) { diff --git a/src/pages/dashboard/urls.tsx b/src/pages/dashboard/urls.tsx index f21b975..1531430 100644 --- a/src/pages/dashboard/urls.tsx +++ b/src/pages/dashboard/urls.tsx @@ -18,6 +18,7 @@ export default function UrlsPage({ title }) { diff --git a/src/pages/dashboard/users.tsx b/src/pages/dashboard/users.tsx index e0f2793..a47ad11 100644 --- a/src/pages/dashboard/users.tsx +++ b/src/pages/dashboard/users.tsx @@ -18,6 +18,7 @@ export default function UsersPage({ title }) { diff --git a/src/pages/invite/[code].tsx b/src/pages/invite/[code].tsx index 57a1cf7..c8e8554 100644 --- a/src/pages/invite/[code].tsx +++ b/src/pages/invite/[code].tsx @@ -9,8 +9,9 @@ import { CrossIcon, UserIcon } from 'components/icons'; import { useStoreDispatch } from 'lib/redux/store'; import { updateUser } from 'lib/redux/reducers/user'; import { useRouter } from 'next/router'; +import Head from 'next/head'; -export default function Invite({ code }) { +export default function Invite({ code, title }) { const [active, setActive] = useState(0); const [username, setUsername] = useState(''); const [usernameError, setUsernameError] = useState(''); @@ -79,6 +80,9 @@ export default function Invite({ code }) { return ( <> + + {title} - Invite ({code}) +
@@ -91,7 +95,6 @@ export default function Invite({ code }) { onBlur={() => checkUsername()} /> - {/* */} @@ -150,5 +153,10 @@ export const getServerSideProps: GetServerSideProps = async context => { return { notFound: true }; }; - return { props: { code: invite.code } }; + return { + props: { + code: invite.code, + title: global.config.website.title, + }, + }; };