Skip to content

Commit

Permalink
refactor(front): refactor path
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Nov 5, 2023
1 parent 9e6edb7 commit 1651d43
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
20 changes: 9 additions & 11 deletions frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import "./globals.css";
import "@/app/globals.css";
import Loading from "@/components/pages/loading";
import React from "react";
import dynamic from "next/dynamic";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import dynamic from "next/dynamic";
import Loading from "../components/pages/loading";
import React from "react";

const inter = Inter({ subsets: ["latin"] });

const Menu = dynamic(() => import("../components/navigation"), {
const Menu = dynamic(() => import("@/components/navigation"), {
loading: () => <Loading />,
ssr: false,
});
const ThemeProvider = dynamic(() => import("../components/providers/theme"), {
const ThemeProvider = dynamic(() => import("@/components/providers/theme"), {
loading: () => <Loading />,

ssr: false,
});

Expand All @@ -22,11 +21,10 @@ export const metadata: Metadata = {
description: "Convert from DAR to OAR.",
};

export default function RootLayout({
children,
}: {
type Props = Readonly<{
children: React.ReactNode;
}) {
}>;
export default function RootLayout({ children }: Props) {
return (
<html lang="en">
<body className={inter.className}>
Expand Down
8 changes: 2 additions & 6 deletions frontend/src/app/settings/page.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import dynamic from "next/dynamic";
import Loading from "../../components/pages/loading";
import Loading from "@/components/pages/loading";

const Settings = dynamic(() => import("../../components/pages/settings"), {
loading: () => <Loading />,
ssr: false,
});

export default function Settings_() {
return (
<>
<Settings />
</>
);
return <Settings />;
}

0 comments on commit 1651d43

Please sign in to comment.