fix: unocss attribute

This commit is contained in:
syy11cn 2022-04-02 19:11:04 +08:00 committed by sunyiyang.11
parent f90b15b31e
commit 2aff67704a
1 changed files with 2 additions and 2 deletions

View File

@ -5,9 +5,9 @@ const Footer = () => {
return <> return <>
{/* Toggle dark mode. */} {/* Toggle dark mode. */}
<button className={isDark ? 'i-carbon-sun' : 'i-carbon-moon'} onClick={() => toggleDark()}></button> <button className={`icon-btn ${isDark ? 'i-carbon-sun' : 'i-carbon-moon'}`} onClick={() => toggleDark()}></button>
{/* Github icon. */} {/* Github icon. */}
<button className="icon-btn i-carbon-github"></button> <a className="icon-btn i-carbon-logo-github" href="https://github.com/syy11cn/reactemplate"></a>
</> </>
} }