forked from shezhangzhang/chatgpt-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eaa0e7a
commit b41a122
Showing
6 changed files
with
60 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
import "@/styles/globals.css"; | ||
import type { AppProps } from "next/app"; | ||
import { Analytics } from "@vercel/analytics/react"; | ||
import * as Sentry from "@sentry/nextjs"; | ||
import Header from "../components/header"; | ||
import { useEffect, useState } from "react"; | ||
import { DarkContext } from "../utils/darkContext"; | ||
// import * as Sentry from "@sentry/nextjs"; | ||
|
||
Sentry.init({ | ||
dsn: "https://[email protected]/4504841207021568", | ||
|
||
// Set tracesSampleRate to 1.0 to capture 100% | ||
// of transactions for performance monitoring. | ||
// We recommend adjusting this value in production | ||
tracesSampleRate: 1.0, | ||
}); | ||
// GO: https://sentry.io/ | ||
// Sentry.init({ | ||
// dsn: "your_own_sentry_dsn", | ||
// tracesSampleRate: 1.0, | ||
// }); | ||
|
||
const DARK_MODE = "DARK"; | ||
|
||
|
@@ -35,9 +32,9 @@ export default function App({ Component, pageProps }: AppProps) { | |
<> | ||
<div className={`${dark ? "dark" : ""}`}> | ||
<DarkContext.Provider value={dark}> | ||
<div className="text-slate-900 dark:text-slate-100 min-h-screen dark:bg-slate-900"> | ||
<div className="min-h-screen text-slate-900 dark:bg-slate-900 dark:text-slate-100"> | ||
<Header dark={dark} setDark={setDark} /> | ||
<main className="flex mx-auto flex-col items-center"> | ||
<main className="mx-auto flex flex-col items-center"> | ||
<Component {...pageProps} /> | ||
</main> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters