Skip to content

Commit 75a2eb1

Browse files
TheZokersdirix
andauthored
Update packages/example/src/App.tsx
Co-authored-by: Stefan Dirix <[email protected]>
1 parent c8d0213 commit 75a2eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/example/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const App = ({ examples, cells, renderers}: AppProps) => {
151151
</select>
152152
</div>
153153
<div className='toggle-panel'>
154-
<input type='checkbox' id='panel' name='panel' checked={showPanel} onChange={() => setShowPanel(!showPanel)} />
154+
<input type='checkbox' id='panel' name='panel' checked={showPanel} onChange={() => setShowPanel(prevShow => !prevShow)} />
155155
<label htmlFor='panel'>Show sidepanel</label>
156156
</div>
157157
</div>

0 commit comments

Comments
 (0)