Skip to content

Commit e0d0c97

Browse files
committed
chore: wip
1 parent e437753 commit e0d0c97

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

packages/app-explorer/src/app/global-error.tsx

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
"use client";
2-
import "@fuels/ui/styles.css";
3-
import "./error.css";
4-
import "./globals.css";
1+
'use client';
2+
import '@fuels/ui/styles.css';
3+
import './error.css';
4+
import './globals.css';
55

6-
import Cookies from "js-cookie";
7-
import type { Metadata } from "next";
8-
import { ErrorPageComponent } from "~/systems/Core/components/ErrorPage/ErrorPage";
9-
import { Provider } from "~/systems/Core/components/Provider";
10-
import { cx } from "~/systems/Core/utils/cx";
6+
import Cookies from 'js-cookie';
7+
import type { Metadata } from 'next';
8+
import { ErrorPageComponent } from '~/systems/Core/components/ErrorPage/ErrorPage';
9+
import { Provider } from '~/systems/Core/components/Provider';
10+
import { cx } from '~/systems/Core/utils/cx';
1111

1212
export const metadata: Metadata = {
13-
title: "Fuel Explorer",
14-
description: "Explorer of the Fastest execution layer",
13+
title: 'Fuel Explorer',
14+
description: 'Explorer of the Fastest execution layer',
1515
};
1616

1717
export default function Page() {
18-
const value = Cookies.get("fuel-theme") ?? "dark";
18+
const value = Cookies.get('fuel-theme') ?? 'dark';
1919
return (
2020
<html
2121
suppressHydrationWarning

packages/app-explorer/src/app/layout.tsx

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import "@fuels/ui/styles.css";
2-
import "./globals.css";
1+
import '@fuels/ui/styles.css';
2+
import './globals.css';
33

4-
import { GeistMono } from "geist/font/mono";
5-
import { GeistSans } from "geist/font/sans";
6-
import type { Metadata } from "next";
7-
import { cookies } from "next/headers";
8-
import { Layout } from "~/systems/Core/components/Layout/Layout";
9-
import { Provider } from "~/systems/Core/components/Provider";
10-
import { cx } from "~/systems/Core/utils/cx";
11-
import Script from "next/script";
4+
import { GeistMono } from 'geist/font/mono';
5+
import { GeistSans } from 'geist/font/sans';
6+
import type { Metadata } from 'next';
7+
import { cookies } from 'next/headers';
8+
import Script from 'next/script';
9+
import { Layout } from '~/systems/Core/components/Layout/Layout';
10+
import { Provider } from '~/systems/Core/components/Provider';
11+
import { cx } from '~/systems/Core/utils/cx';
1212

1313
export const metadata: Metadata = {
14-
title: "Fuel Explorer",
15-
description: "Explorer of the Fastest execution layer",
14+
title: 'Fuel Explorer',
15+
description: 'Explorer of the Fastest execution layer',
1616
};
1717

1818
export default function RootLayout({
1919
children,
2020
}: {
2121
children: React.ReactNode;
2222
}) {
23-
const { value: theme } = cookies().get("fuel-theme") ?? { value: "dark" };
23+
const { value: theme } = cookies().get('fuel-theme') ?? { value: 'dark' };
2424
//const theme = "dark"; // Initial default theme
25-
console.log(`theme`, theme);
25+
console.log('theme', theme);
2626
return (
2727
<html
2828
suppressHydrationWarning

packages/app-explorer/src/systems/Core/components/Provider/Provider.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
"use client";
1+
'use client';
22

3-
import { Theme, Toaster } from "@fuels/ui";
4-
import { useEffect, useState } from "react";
3+
import { Theme, Toaster } from '@fuels/ui';
4+
import { useEffect, useState } from 'react';
55

66
export function Provider({ children }: { children: React.ReactNode }) {
7-
const [theme, setTheme] = useState<string>("dark");
7+
const [theme, setTheme] = useState<string>('dark');
88
useEffect(() => {
9-
setTheme(localStorage.getItem("fuel-ui-theme") ?? "dark");
9+
setTheme(localStorage.getItem('fuel-ui-theme') ?? 'dark');
1010
}, []);
11-
console.log(`theme2`, theme);
11+
console.log('theme2', theme);
1212
return (
1313
<Theme appearance={theme as any} hasBackground={false}>
1414
{children}

0 commit comments

Comments
 (0)