mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-12 15:52:56 +10:00
Fix issue with variable accessor
This commit is contained in:
@ -34,16 +34,16 @@ const Page: React.FC<Props> = ({ page, showPageNumbers = false }) => {
|
|||||||
const TemplatePage: React.FC<PageProps> | null = useMemo(() => templateMap[template].component, [template]);
|
const TemplatePage: React.FC<PageProps> | null = useMemo(() => templateMap[template].component, [template]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div data-page={page + 1} data-format={pageConfig.format || 'A4'} className={styles.container}>
|
<div className={styles.container} data-page={page + 1} data-format={pageConfig?.format || 'A4'}>
|
||||||
<div
|
<div
|
||||||
className={clsx({
|
className={clsx({
|
||||||
reset: true,
|
reset: true,
|
||||||
[styles.page]: true,
|
[styles.page]: true,
|
||||||
[styles.break]: breakLine,
|
[styles.break]: breakLine,
|
||||||
|
[styles['format-letter']]: pageConfig?.format === 'Letter',
|
||||||
[css(themeCSS)]: true,
|
[css(themeCSS)]: true,
|
||||||
[css(typographyCSS)]: true,
|
[css(typographyCSS)]: true,
|
||||||
[css(customCSS.value)]: customCSS.visible,
|
[css(customCSS.value)]: customCSS.visible,
|
||||||
[styles['format-letter']]: pageConfig?.format === 'Letter',
|
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
{TemplatePage && <TemplatePage page={page} />}
|
{TemplatePage && <TemplatePage page={page} />}
|
||||||
|
|||||||
@ -18,8 +18,8 @@ export type LoginWithGoogleParams = {
|
|||||||
|
|
||||||
export type RegisterParams = {
|
export type RegisterParams = {
|
||||||
name: string;
|
name: string;
|
||||||
username: string;
|
|
||||||
email: string;
|
email: string;
|
||||||
|
username: string;
|
||||||
password: string;
|
password: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "reactive-resume",
|
"name": "reactive-resume",
|
||||||
"version": "3.6.8",
|
"version": "3.6.8+1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "env-cmd --silent turbo run dev",
|
"dev": "env-cmd --silent turbo run dev",
|
||||||
|
|||||||
@ -9,8 +9,8 @@ export type PageConfig = {
|
|||||||
|
|
||||||
export type ThemeConfig = {
|
export type ThemeConfig = {
|
||||||
text: string;
|
text: string;
|
||||||
background: string;
|
|
||||||
primary: string;
|
primary: string;
|
||||||
|
background: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TypeCategory = 'heading' | 'body';
|
export type TypeCategory = 'heading' | 'body';
|
||||||
|
|||||||
Reference in New Issue
Block a user