diff --git a/app/App.tsx b/app/App.tsx
index 7c85a45..eaf472a 100644
--- a/app/App.tsx
+++ b/app/App.tsx
@@ -16,7 +16,6 @@ import { Bounce, ToastContainer } from "react-toastify";
import { NavBarPc } from "./components/Navbar/NavBarPc";
import { NavBarMobile } from "./components/Navbar/NavBarMobile";
import { SettingsModal } from "./components/SettingsModal/SettingsModal";
-import { ThemeInit } from "../.flowbite-react/init";
const inter = Inter({ subsets: ["latin"] });
@@ -132,7 +131,6 @@ export const App = (props) => {
isOpen={isSettingModalOpen}
setIsOpen={setIsSettingModalOpen}
/>
-
);
};
diff --git a/app/layout.tsx b/app/layout.tsx
index 0c0415f..99240ee 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -2,6 +2,7 @@ import "./globals.css";
import { App } from "./App";
import { ThemeModeScript } from "flowbite-react";
import { PublicEnvScript } from 'next-runtime-env';
+import { ThemeInit } from "../.flowbite-react/init";
export const metadata = {
metadataBase: new URL("https://anix.wah.su"),
@@ -35,6 +36,7 @@ export default function RootLayout({ children }) {
+
{children}
diff --git a/next.config.js b/next.config.mjs
similarity index 93%
rename from next.config.js
rename to next.config.mjs
index 24aa345..08b5070 100644
--- a/next.config.js
+++ b/next.config.mjs
@@ -1,4 +1,5 @@
-const withFlowbiteReact = require("flowbite-react/plugin/nextjs");
+import withFlowbiteReact from "flowbite-react/plugin/nextjs";
+
/** @type {import('next').NextConfig} */
const NextConfig = {
output: "standalone",
@@ -80,6 +81,4 @@ const NextConfig = {
},
};
-const config = withFlowbiteReact(NextConfig);
-
-module.exports = config;
+export default withFlowbiteReact(NextConfig);
diff --git a/package-lock.json b/package-lock.json
index 7c7ebbb..cfb8bd5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7,7 +7,6 @@
"": {
"name": "new",
"version": "0.1.0",
- "hasInstallScript": true,
"dependencies": {
"apexcharts": "^3.52.0",
"deepmerge-ts": "^7.1.0",
diff --git a/tsconfig.json b/tsconfig.json
index b0d0bcc..f7fcd08 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -31,7 +31,7 @@
".next/types/**/*.ts",
"**/*.ts",
"**/*.tsx",
- "next.config.js"
+ "next.config.mjs"
],
"exclude": ["node_modules", "player-parser", "api-prox"]
}