From ecee0b27160715247cc2763eec848a95d698e163 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcin=20Ja=C5=82ocha?=
Date: Fri, 6 Dec 2024 23:26:05 +0100
Subject: [PATCH] Add new decorator @layout
---
src/pages/_app.tsx | 2 +-
src/pages/_document.tsx | 4 +---
src/pages/account/index.tsx | 2 +-
src/pages/account/login.tsx | 2 +-
src/pages/account/register.tsx | 2 +-
src/pages/community/who-is-online/index.tsx | 6 +++---
tsconfig.json | 3 +++
7 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index 677f8b9..ec0da34 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -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";
diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx
index f7b3fdb..8d068fc 100644
--- a/src/pages/_document.tsx
+++ b/src/pages/_document.tsx
@@ -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 (
diff --git a/src/pages/account/index.tsx b/src/pages/account/index.tsx
index 01e7877..808ff63 100644
--- a/src/pages/account/index.tsx
+++ b/src/pages/account/index.tsx
@@ -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";
diff --git a/src/pages/account/login.tsx b/src/pages/account/login.tsx
index 291ac76..efa040d 100644
--- a/src/pages/account/login.tsx
+++ b/src/pages/account/login.tsx
@@ -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";
diff --git a/src/pages/account/register.tsx b/src/pages/account/register.tsx
index fda3da9..46782e1 100644
--- a/src/pages/account/register.tsx
+++ b/src/pages/account/register.tsx
@@ -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";
diff --git a/src/pages/community/who-is-online/index.tsx b/src/pages/community/who-is-online/index.tsx
index d6433dd..c4bb99a 100644
--- a/src/pages/community/who-is-online/index.tsx
+++ b/src/pages/community/who-is-online/index.tsx
@@ -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";
@@ -12,8 +12,8 @@ export default function WhoIsOnline() {
return (
<>
-
-
+
+