Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/components/CardSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import clsx from 'clsx'
import { CSSProperties, JSX, useState, useEffect } from 'react'
import { CSSProperties, JSX } from 'react'
import { useColorMode } from '@docusaurus/theme-common'
import Card, { CardItem } from '@site/src/components/Card'

Expand All @@ -19,11 +19,7 @@ export default function CardSection({
colorPalette,
}: CardSectionProps): JSX.Element {
const { colorMode } = useColorMode()
const [theme, setTheme] = useState('')

useEffect(() => {
setTheme(colorMode)
}, [colorMode])
const theme = colorMode

return (
<section className={styles.wrapper}>
Expand Down
Loading