Skip to content

Commit c32a1da

Browse files
authored
fix: update theme resolution in Giscus component (#64)
1 parent 5cccba8 commit c32a1da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ui/giscus.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type GiscusProps = ComponentProps<'section'>;
1111
export const Giscus = ({ ...props }: GiscusProps) => {
1212
const ref = useRef<HTMLDivElement | null>(null);
1313
const [mounted, setMounted] = useState<boolean>(false);
14-
const { theme: appTheme } = useTheme();
14+
const { resolvedTheme: appTheme } = useTheme();
1515

1616
const theme = appTheme === 'dark' ? 'noborder_gray' : 'noborder_light';
1717

0 commit comments

Comments
 (0)