A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
Fix-Gengar Theme MastHead Icons Disappear on Theme Change
Aadhar Chandiwalae7a859645680
diff --git a/client/templates/Gengar/Gengar.tsx b/client/templates/Gengar/Gengar.tsxindex c05544336..79b7b5891 100644--- a/client/templates/Gengar/Gengar.tsx+++ b/client/templates/Gengar/Gengar.tsx@@ -1,5 +1,7 @@+import { css } from '@emotion/css';import { alpha } from '@mui/material';import { Theme } from '@reactive-resume/schema';+import clsx from 'clsx';import get from 'lodash/get';import { useMemo } from 'react';@@ -19,12 +21,16 @@ const Gengar: React.FC<PageProps> = ({ page }) => {const theme: Theme = useAppSelector((state) => get(state.resume, 'metadata.theme', {}));const contrast = useMemo(() => getContrastColor(theme.primary), [theme.primary]);const backgroundColor: string = useMemo(() => alpha(theme.primary, 0.15), [theme.primary]);+ const color = useMemo(() => (contrast === 'dark' ? theme.text : theme.background), [theme, contrast]);return (<div className={styles.page}><div className={styles.container}><div className={styles.sidebar}>- <div style={{ color: contrast === 'dark' ? theme.text : theme.background, backgroundColor: theme.primary }}>+ <div+ className={clsx(css(`svg { color: ${color} } --primary-color: ${color}`))}+ style={{ color: contrast === 'dark' ? theme.text : theme.background, backgroundColor: theme.primary }}+ >{isFirstPage && <MastheadSidebar />}</div>