1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
This commit is contained in:
EnzoVezzaro 2022-07-07 10:40:33 -04:00
parent a51814a1f5
commit 67cc291def

View File

@ -32,7 +32,8 @@ const withThemeProvider = (Story, context) => {
const theme = context.globals.theme const theme = context.globals.theme
var storyBody = document.getElementById('story-body') var storyBody = document.getElementById('story-body')
theme === 'dark'
storyBody && theme === 'dark'
? storyBody.classList.add('dark') ? storyBody.classList.add('dark')
: storyBody.classList.remove('dark') : storyBody.classList.remove('dark')