chore: move navigation bar to layout from each page file
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
import FilesEdit from "@/components/FilesEditor";
|
import FilesEdit from "@/components/FilesEditor";
|
||||||
import ConsoleNavigation from "@/components/ConsoleNavigation";
|
|
||||||
|
|
||||||
export default function Files() {
|
export default function Files() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ConsoleNavigation />
|
|
||||||
<section className="container mx-auto">
|
<section className="container mx-auto">
|
||||||
<FilesEdit />
|
<FilesEdit />
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { Inter } from "next/font/google";
|
import { Inter } from "next/font/google";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
|
import { Console } from "console";
|
||||||
|
import ConsoleNavigation from "@/components/ConsoleNavigation";
|
||||||
|
|
||||||
const inter = Inter({ subsets: ["latin"] });
|
const inter = Inter({ subsets: ["latin"] });
|
||||||
|
|
||||||
@@ -20,7 +22,10 @@ export default function RootLayout({
|
|||||||
<header>
|
<header>
|
||||||
<h1 className="text-4xl font-bold"></h1>
|
<h1 className="text-4xl font-bold"></h1>
|
||||||
</header>
|
</header>
|
||||||
<div id="container">{children}</div>
|
<div id="container">
|
||||||
|
<ConsoleNavigation />
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import Stats from "./stats";
|
|||||||
import ServerName from "./serverName";
|
import ServerName from "./serverName";
|
||||||
import ServerControl from "./serverControl";
|
import ServerControl from "./serverControl";
|
||||||
import ServerStatus from "./serverStatus";
|
import ServerStatus from "./serverStatus";
|
||||||
import Navigation from "../ConsoleNavigation";
|
|
||||||
|
|
||||||
const Console = () => {
|
const Console = () => {
|
||||||
const [apiKey, setApiKey] = useState("");
|
const [apiKey, setApiKey] = useState("");
|
||||||
@@ -157,7 +156,6 @@ const Console = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Navigation />
|
|
||||||
<section className="container mx-auto">
|
<section className="container mx-auto">
|
||||||
<div className="flex flex-col gap-4">
|
<div className="flex flex-col gap-4">
|
||||||
<div className="flex gap-4">
|
<div className="flex gap-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user