feat: add auto mode in theme selection

This commit is contained in:
QiShaoXuan
2022-09-28 10:49:02 +08:00
parent fb828c9cf4
commit 008c0d83e3
4 changed files with 39 additions and 28 deletions
+7
View File
@@ -21,6 +21,13 @@ const Home: NextPage = () => {
>
current theme mode :{mode}(click to change)
</button>
<button
onClick={() => {
changeMode('auto');
}}
>
click to set "auto" mode
</button>
</div>
);
};