mirror of
https://github.com/yude-jp/yude.jp
synced 2025-05-25 23:24:52 +09:00
Compare commits
No commits in common. "7da9e16b631eb1cf9b2ecaedf820d33da4b69a0d" and "0d21be23a1eef916a4b167b4572a62138a65888e" have entirely different histories.
7da9e16b63
...
0d21be23a1
@ -22,11 +22,11 @@ const ThemeSelector = (props) => {
|
|||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<button className="inline-flex rounded-md border border-gray-300 dark:border-gray-800 shadow-sm px-2 bg-white font-medium text-gray-700 hover:bg-gray-50 dark:bg-gray-700 dark:text-white my-3 py-1 text-2xl focus:outline-none" onClick={switchTheme}>
|
<button className="inline-flex rounded-md border border-gray-300 dark:border-gray-800 shadow-sm px-2 bg-white font-medium text-gray-700 hover:bg-gray-50 dark:bg-gray-700 dark:text-white my-3 py-1 text-2xl focus:outline-none" onClick={switchTheme}>
|
||||||
{theme !== undefined && (theme === "light" ? (
|
{theme === 'light' ? (
|
||||||
<FontAwesomeIcon icon={faMoon} className="w-10 h-7" />
|
<FontAwesomeIcon icon={faMoon} className="w-10 h-7" />
|
||||||
) : (
|
) : (
|
||||||
<FontAwesomeIcon icon={faSun} className="w-10 h-7" />
|
<FontAwesomeIcon icon={faSun} className="w-10 h-7" />
|
||||||
))}
|
)}
|
||||||
</button>
|
</button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user