mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-01-15 08:02:56 -05:00
rename resolvedTheme -> activeTheme
This commit is contained in:
@@ -18,7 +18,7 @@ export type CommentsProps = ComponentProps<typeof Wrapper> & {
|
||||
};
|
||||
|
||||
const Comments = ({ title, ...rest }: CommentsProps) => {
|
||||
const { resolvedTheme } = useTheme();
|
||||
const { activeTheme } = useTheme();
|
||||
|
||||
// TODO: use custom `<Loading />` spinner component during suspense
|
||||
return (
|
||||
@@ -29,7 +29,7 @@ const Comments = ({ title, ...rest }: CommentsProps) => {
|
||||
mapping="specific"
|
||||
reactionsEnabled="1"
|
||||
emitMetadata="0"
|
||||
theme={resolvedTheme === "dark" ? "dark" : "light"}
|
||||
theme={activeTheme === "dark" ? "dark" : "light"}
|
||||
/>
|
||||
</Wrapper>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user