Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Dec 7, 2023
1 parent 04982d2 commit 66e4e3b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/pages-router/pages/static-dark-color-scheme.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { ColorSchemeType } from "nextjs-themes";

function StaticBlackTheme() {
function StaticDarkColorScheme() {
return (
<div>
<h1>Static Black theme by setting theme on page Component</h1>
<h1>Static Color Scheme by setting colorScheme on page Component</h1>
<code>
<pre>
{`function MyPage() {
return (<>...</>)
}
MyPage.theme = "my-theme";
MyPage.colorScheme = "dark";
export default MyPage;`}
</pre>
Expand All @@ -19,6 +19,6 @@ export default MyPage;`}
);
}

StaticBlackTheme.colorScheme = "dark" as ColorSchemeType;
StaticDarkColorScheme.colorScheme = "dark" as ColorSchemeType;

export default StaticBlackTheme;
export default StaticDarkColorScheme;

0 comments on commit 66e4e3b

Please sign in to comment.