1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 07:01:19 -04: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

@@ -8,7 +8,7 @@ export type TweetEmbedProps = {
};
const TweetEmbed = ({ id, options }: TweetEmbedProps) => {
const { resolvedTheme } = useTheme();
const { activeTheme } = useTheme();
return (
<TwitterTweetEmbed
@@ -16,7 +16,7 @@ const TweetEmbed = ({ id, options }: TweetEmbedProps) => {
options={{
dnt: true,
align: "center",
theme: resolvedTheme === "dark" ? "dark" : "light",
theme: activeTheme === "dark" ? "dark" : "light",
...options,
}}
/>