File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
custom-implementation/src Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,16 @@ const render = async () => {
29
29
30
30
const theme = document . getElementsByTagName ( 'html' ) [ 0 ] . getAttribute ( 'class' )
31
31
32
- if ( ! document . getElementById ( 'theme-switch' ) ) {
32
+ if ( ! document . getElementById ( 'theme-switch' ) && ! document . getElementById ( 'search-component' ) ) {
33
33
const wrapper = document . createElement ( 'div' )
34
34
wrapper . setAttribute ( 'id' , 'theme-switch' )
35
35
sidenav . appendChild ( wrapper )
36
36
ReactDOM . render ( React . createElement ( ThemeSwitch ) , wrapper )
37
+
38
+ const search = document . createElement ( 'div' )
39
+ search . setAttribute ( 'id' , 'search-component' )
40
+ sidenav . appendChild ( search )
41
+ ReactDOM . render ( React . createElement ( Search ) , search )
37
42
}
38
43
39
44
// if(!document.getElementById('search-component-wrapper')) {
You can’t perform that action at this time.
0 commit comments