Skip to content

Commit 2128cd8

Browse files
authored
Update code.js
Signed-off-by: Varad Gupta <114755221+vr-varad@users.noreply.github.com>
1 parent 0e5bb3a commit 2128cd8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/sections/Projects/Sistent/components/switch

src/sections/Projects/Sistent/components/switch/code.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const SwitchCode = () => {
7878
<div className="showcase">
7979
<div className="items">
8080
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
81-
<Switch/>
81+
<Switch checked={checked} />
8282
</SistentThemeProvider>
8383
</div>
8484
<CodeBlock name="basic-switch" code={codes[0]} />
@@ -149,4 +149,4 @@ const SwitchCode = () => {
149149
);
150150
};
151151

152-
export default SwitchCode;
152+
export default SwitchCode;

0 commit comments

Comments
 (0)