Skip to content

Commit 0cf253e

Browse files
author
bunsenstraat
committed
load theme
1 parent 69ae236 commit 0cf253e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ const RemixUiVerticalIconsPanel = ({
4747
}
4848
})
4949
useEffect(() => {
50+
verticalIconsPlugin.call('theme', 'currentTheme').then((th: any) => {
51+
setTheme(th.quality)
52+
})
5053
verticalIconsPlugin.on('theme', 'themeChanged', (th: any) => {
5154
setTheme(th.quality)
5255
})

0 commit comments

Comments
 (0)