Skip to content

Commit

Permalink
Add new decorator @layout
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiro committed Dec 6, 2024
1 parent b2794ef commit ecee0b2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Layout from "../layout";
import { ChakraProvider } from "@chakra-ui/react";
import { Theme } from "../layout/theme";
import { Theme } from "@layout/theme";
import React from "react";
import { trpc } from "../utils/trpc";

Expand Down
4 changes: 1 addition & 3 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// pages/_document.tsx

import { Html, Head, Main, NextScript } from "next/document";
import { ColorModeScript } from "@chakra-ui/react";
import { Theme } from "../layout/theme";
import { Theme } from "@layout/theme";

const MyDocument = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/account/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react";
import Panel from "@component/Panel";
import Head from "../../layout/Head";
import Head from "@layout/Head";
import { fetchApi } from "@lib/request";
import { User, withSessionSsr } from "@lib/session";
import Button from "@component/Button";
Expand Down
2 changes: 1 addition & 1 deletion src/pages/account/login.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import Panel from "@component/Panel";
import Head from "../../layout/Head";
import Head from "@layout/Head";
import Link from "@component/Link";
import { useRouter } from "next/router";
import { withSessionSsr } from "@lib/session";
Expand Down
2 changes: 1 addition & 1 deletion src/pages/account/register.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import Panel from "@component/Panel";
import Head from "../../layout/Head";
import Head from "@layout/Head";
import { withSessionSsr } from "@lib/session";
import { trpc } from "@util/trpc";
import { SubmitHandler, useForm } from "react-hook-form";
Expand Down
6 changes: 3 additions & 3 deletions src/pages/community/who-is-online/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Panel from "@component/Panel";
import StrippedTable from "@component/StrippedTable";
import Head from "../../../layout/Head";
import Head from "@layout/Head";
import Label from "@component/Label";
import { trpc } from "@util/trpc";
import { VStack } from "@chakra-ui/react";
Expand All @@ -12,8 +12,8 @@ export default function WhoIsOnline() {

return (
<>
<Head title="Online" />
<Panel header="Online List">
<Head title="Who is online" />
<Panel header="Who is online">
<VStack>
<Label colorScheme="violet" fontSize="sm">
Overall Maximum: {status.data?.maxOnlineCount ?? 0} players. There are currently {players.data?.length ?? 0} players online on
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"@hook/*": [
"src/hooks/*"
],
"@layout/*": [
"src/layout/*"
],
},
},
"include": [
Expand Down

0 comments on commit ecee0b2

Please sign in to comment.