Skip to content

Commit

Permalink
fix: darkmode
Browse files Browse the repository at this point in the history
  • Loading branch information
tvqqq committed Jun 5, 2023
1 parent 6d373e7 commit eee3fc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const FooterImpl: React.FC = () => {
return (
<footer className={styles.footer}>
<div></div>
<div className={styles.copyright}>Copyright 2023 {config.author}</div>
<div className={styles.copyright}>Copyright © 2023 - {config.author}</div>
<div></div>

{/* <div className={styles.settings}>
Expand Down
5 changes: 3 additions & 2 deletions components/NotionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import * as types from '@/lib/types'
import { mapImageUrl } from '@/lib/map-image-url'
import { getCanonicalPageUrl, mapPageUrl } from '@/lib/map-page-url'
import { searchNotion } from '@/lib/search-notion'
import { useDarkMode } from '@/lib/use-dark-mode'

// import { useDarkMode } from '@/lib/use-dark-mode'
import { Footer } from './Footer'
// import { GitHubShareButton } from './GitHubShareButton'
import { Loading } from './Loading'
Expand Down Expand Up @@ -172,7 +172,8 @@ export const NotionPage: React.FC<types.PageProps> = ({
// lite mode is for oembed
const isLiteMode = lite === 'true'

const { isDarkMode } = useDarkMode()
// const { isDarkMode } = useDarkMode()
const isDarkMode = true

const siteMapPageUrl = React.useMemo(() => {
const params: any = {}
Expand Down

1 comment on commit eee3fc7

@vercel
Copy link

@vercel vercel bot commented on eee3fc7 Jun 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.