1
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:
2022-05-04 10:48:41 -04:00
parent ef3071dd99
commit d67428b043
8 changed files with 38 additions and 43 deletions

View File

@@ -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>
);