mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
Merge pull request #1128 from tangly1024/fix-bug/simple-darkmode-button
fix-dark-mode-button
This commit is contained in:
@@ -13,7 +13,7 @@ const DarkModeButton = (props) => {
|
||||
htmlElement.classList?.add(newStatus ? 'dark' : 'light')
|
||||
}
|
||||
|
||||
return <div className={'dark:text-gray-200 z-10 duration-200 text-xl py-2 ' + props.className}>
|
||||
return <div className={'text-gray-200 z-10 duration-200 text-xl py-2 ' + props.className}>
|
||||
<i id='darkModeButton' className={`hover:scale-125 cursor-pointer transform duration-200 fas ${isDarkMode ? 'fa-sun' : 'fa-moon'}`}
|
||||
onClick={handleChangeDarkMode} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user