mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 15:09:47 +00:00
feature: Update copyright year automatically
This commit is contained in:
@@ -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) => {
|
||||
@@ -35,7 +36,7 @@ export const FooterImpl: React.FC = () => {
|
||||
|
||||
return (
|
||||
<footer className={styles.footer}>
|
||||
<div className={styles.copyright}>Copyright 2022 {config.author}</div>
|
||||
<div className={styles.copyright}>Copyright { currentYear } {config.author}</div>
|
||||
|
||||
<div className={styles.settings}>
|
||||
{hasMounted && (
|
||||
|
||||
Reference in New Issue
Block a user