We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f3ab0f commit 62b3088Copy full SHA for 62b3088
custom-implementation/src/main.tsx
@@ -24,9 +24,7 @@ const render = async () => {
24
if (!document.getElementById('theme-switch')) {
25
const wrapper = document.createElement('div')
26
wrapper.setAttribute('id', 'theme-switch')
27
- if (sidenav) {
28
- sidenav.appendChild(wrapper)
29
- }
+ sidenav.appendChild(wrapper)
30
ReactDOM.render(React.createElement(ThemeSwitch), wrapper)
31
}
32
0 commit comments