File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
custom-implementation/src Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ any) => {
46
46
logo = { logo }
47
47
items = { links }
48
48
actions = { actions }
49
- version = { theme === 'dark' ? 'dark' : 'light' } // Ensure the theme is correctly reflected
49
+ version = { theme === 'dark' ? 'dark' : 'light' } // Reflect the theme correctly
50
50
collapseOnScroll = { collapseOnScroll }
51
51
wrapperClassName = "custom-header"
52
52
/>
Original file line number Diff line number Diff line change @@ -2,18 +2,15 @@ import './main.css'
2
2
import '@devrev/marketing-shared-components/dist/cjs/index.css'
3
3
4
4
import ReactDOM from 'react-dom'
5
-
6
5
import React from 'react'
7
-
8
6
import Header from './components/header'
9
7
import Footer from './components/footer'
10
8
import { ThemeSwitch } from './components/theme-switch'
11
-
12
9
import { getPageData } from './modules/sanity/utils'
13
10
14
11
const render = async ( ) => {
15
12
/*
16
- * This is a where we try to make async data call.
13
+ * This is where we try to make async data call.
17
14
*/
18
15
19
16
const data = await getPageData ( )
@@ -32,7 +29,7 @@ const render = async () => {
32
29
ReactDOM . render (
33
30
React . createElement ( Header , {
34
31
...data . header ,
35
- version : theme == 'dark' ? 'light ' : 'dark' ,
32
+ version : theme === 'dark' ? 'dark ' : 'light' , // Ensure version is correctly set based on theme
36
33
} ) ,
37
34
document . getElementById ( 'fern-header' ) ,
38
35
( ) => {
You can’t perform that action at this time.
0 commit comments