-
Notifications
You must be signed in to change notification settings - Fork 12
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
Showing
37 changed files
with
12,087 additions
and
21,000 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
apps/react-nextjs-example/src/components/error-boundary.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": ["next/core-web-vitals", "next/typescript"] | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** @type {import('postcss-load-config').Config} */ | ||
const config = { | ||
plugins: { | ||
tailwindcss: {}, | ||
}, | ||
}; | ||
|
||
export default config; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import "@/styles/globals.css"; | ||
import "@interchain-ui/react/styles"; | ||
import clsx from "clsx"; | ||
import { ThemeProvider, Box, IconButton, useTheme } from "@interchain-ui/react"; | ||
import type { AppProps } from "next/app"; | ||
|
||
export default function App({ Component, pageProps }: AppProps) { | ||
const { theme, themeClass, setTheme } = useTheme(); | ||
|
||
return ( | ||
<ThemeProvider> | ||
<div className={clsx("app", themeClass)}> | ||
<Box | ||
position="relative" | ||
backgroundColor={theme == "dark" ? "$gray700" : "$white"} | ||
> | ||
<Component {...pageProps} /> | ||
|
||
<Box position="absolute" top="$4" right="$6"> | ||
<IconButton | ||
variant="ghost" | ||
intent="secondary" | ||
size="sm" | ||
icon={theme === "dark" ? "sunLine" : "moonLine"} | ||
onClick={() => { | ||
if (theme === "light") { | ||
return setTheme("dark"); | ||
} | ||
return setTheme("light"); | ||
}} | ||
/> | ||
</Box> | ||
</Box> | ||
</div> | ||
</ThemeProvider> | ||
); | ||
} |
Oops, something went wrong.