Skip to content

Commit

Permalink
fix: incorrent theme setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ChingCdesu committed Jan 16, 2025
1 parent 148f866 commit c074744
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 18 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
public-hoist-pattern[]=*@nextui-org/*
registry=https://registry.npmjs.org/
2 changes: 1 addition & 1 deletion src/app/[locale]/get-key/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function GetKey() {
id="key"
name="key"
onChange={(e) => setOrderId(e.target.value)}
className="block w-full rounded-md bg-white/5 px-3 py-1.5 text-base dark:text-white outline outline-1 -outline-offset-1 outline-white/10 placeholder:text-gray-500 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-500 sm:text-sm/6"
className="block w-full rounded-md bg-white/5 px-3 py-1.5 text-base dark:text-white outline outline-1 -outline-offset-1 dark:outline-white/10 placeholder:text-gray-500 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-500 sm:text-sm/6"
/>
</div>
</div>
Expand Down
10 changes: 9 additions & 1 deletion src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import { Metadata } from 'next';
import { NextIntlClientProvider } from 'next-intl';
import { getMessages } from 'next-intl/server';
import { notFound } from 'next/navigation';
import { routing } from '@/i18n/routing';

import { Providers } from './provider';

import "@/app/globals.css";

export const metadata: Metadata = {
title: "MirrorChyan",
description: "Next generation of CDN for developers",
};

export default async function LocaleLayout({
children,
params,
Expand All @@ -23,7 +31,7 @@ export default async function LocaleLayout({
const messages = await getMessages();

return (
<html lang={locale}>
<html lang={locale} suppressHydrationWarning>
<body>
<Providers>
<NextIntlClientProvider messages={messages}>
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ThemeProvider as NextThemesProvider } from "next-themes";
export function Providers({ children }: { children: React.ReactNode }) {
return (
<NextUIProvider>
<NextThemesProvider attribute="class" defaultTheme="dark">
<NextThemesProvider attribute="class">
{children}
</NextThemesProvider>
</NextUIProvider>
Expand Down
15 changes: 0 additions & 15 deletions src/app/layout.tsx

This file was deleted.

0 comments on commit c074744

Please sign in to comment.