Skip to content

Commit

Permalink
Merge pull request #479 from hongzzz/feature/copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit authored Dec 17, 2023
2 parents bd69dc4 + c7d65e6 commit 0fdd812
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import styles from './styles.module.css'
export const FooterImpl: React.FC = () => {
const [hasMounted, setHasMounted] = React.useState(false)
const { isDarkMode, toggleDarkMode } = useDarkMode()
const currentYear = new Date().getFullYear()

const onToggleDarkMode = React.useCallback(
(e) => {
Expand All @@ -35,7 +36,7 @@ export const FooterImpl: React.FC = () => {

return (
<footer className={styles.footer}>
<div className={styles.copyright}>Copyright {new Date().getFullYear()} {config.author}</div>
<div className={styles.copyright}>Copyright {currentYear} {config.author}</div>

<div className={styles.settings}>
{hasMounted && (
Expand Down

0 comments on commit 0fdd812

Please sign in to comment.