mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-23 05:01:49 +10:00
Fix(builder-page) typo: renamed toogleSection
This commit is contained in:
@ -19,7 +19,7 @@ export const SummarySection = () => {
|
|||||||
);
|
);
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||||
const collapsed = useResumeStore((state) => state.collapsedSections.summary ?? false);
|
const collapsed = useResumeStore((state) => state.collapsedSections.summary ?? false);
|
||||||
const toogleSectionCollapse = useResumeStore((state) => state.toggleSectionCollapsed);
|
const toggleSectionCollapse = useResumeStore((state) => state.toggleSectionCollapsed);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section id="summary" className="grid gap-y-6">
|
<section id="summary" className="grid gap-y-6">
|
||||||
@ -29,7 +29,7 @@ export const SummarySection = () => {
|
|||||||
className="text-gray-500 transition-colors hover:text-gray-700"
|
className="text-gray-500 transition-colors hover:text-gray-700"
|
||||||
aria-label={collapsed ? t`Expand section` : t`Collapse section`}
|
aria-label={collapsed ? t`Expand section` : t`Collapse section`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
toogleSectionCollapse("summary");
|
toggleSectionCollapse("summary");
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{collapsed ? <CaretRightIcon size={18} /> : <CaretDownIcon size={18} />}
|
{collapsed ? <CaretRightIcon size={18} /> : <CaretDownIcon size={18} />}
|
||||||
|
|||||||
Reference in New Issue
Block a user