From d6a7b9a1804cdb0205f6224123a84ff30ff961fa Mon Sep 17 00:00:00 2001 From: code-mattclaffey Date: Tue, 2 Sep 2025 15:24:08 +0100 Subject: [PATCH] fix: ai fixes --- .storybook/components/CodeBlock.tsx | 2 +- .storybook/manager.ts | 1 - .../exercise/exercise.stories.tsx | 0 .../exercise/exercise.tsx | 0 .../final/final.stories.tsx | 0 .../ConditionalRendering/final/final.tsx | 0 .../01-Bronze/ConditionalRendering/lesson.mdx | 0 .../01-Bronze/Hooks/components.tsx | 4 +- .../Hooks/exercise/exercise.stories.tsx | 0 .../01-Bronze/Hooks/exercise/exercise.tsx | 4 +- .../01-Bronze/Hooks/final/final.stories.tsx | 0 .../01-Bronze/Hooks/final/final.tsx | 0 .../01-Bronze/Hooks/lesson.mdx | 0 .../exercise/exercise.stories.tsx | 0 .../exercise/exercise.tsx | 0 .../final/final.stories.tsx | 0 .../final/final.tsx | 0 .../PresentationalAndContainer/lesson.mdx | 0 .../PresentationalAndContainer/mocks.ts | 0 .../exercise/exercise.stories.tsx | 0 .../PropsCombination/exercise/exercise.tsx | 0 .../PropsCombination/final/final.stories.tsx | 0 .../PropsCombination/final/final.tsx | 4 +- .../01-Bronze/PropsCombination/lesson.mdx | 0 .../Slots/exercise/exercise.stories.tsx | 0 .../01-Bronze/Slots/exercise/exercise.tsx | 0 .../01-Bronze/Slots/final/final.stories.tsx | 0 .../01-Bronze/Slots/final/final.tsx | 16 ++++++-- .../01-Bronze/Slots/icons/index.tsx | 0 .../01-Bronze/Slots/lesson.mdx | 0 .../exercise/components/Form.tsx | 0 .../exercise/components/PokemonOptions.tsx | 0 .../exercise/components/Screen.tsx | 0 .../exercise/exercise.stories.tsx | 0 .../exercise/exercise.tsx | 0 .../final/components/Form.tsx | 41 +++++++------------ .../final/components/PokemonOptions.tsx | 0 .../final/components/Screen.tsx | 15 ++++--- .../final/final.stories.tsx | 0 .../final/final.tsx | 0 .../StateColocationVsStateLifting/lesson.mdx | 0 .../exercise/components/Accordion.tsx | 0 .../exercise/components/Accoridon.module.css | 0 .../exercise}/components/ChevronDown.tsx | 2 +- .../Compound/exercise/exercise.stories.tsx | 0 .../02-Silver/Compound/exercise/exercise.tsx | 0 .../Compound/final/components/Accordion.tsx | 0 .../final/components/Accoridon.module.css | 0 .../final}/components/ChevronDown.tsx | 0 .../Compound/final/final.stories.tsx | 0 .../02-Silver/Compound/final/final.tsx | 2 +- .../02-Silver/Compound/lesson.mdx | 0 .../Controlled/exercise/exercise.stories.tsx | 0 .../Controlled/exercise/exercise.tsx | 0 .../Controlled/final/final.stories.tsx | 0 .../02-Silver/Controlled/final/final.tsx | 0 .../02-Silver/Controlled/lesson.mdx | 0 .../exercise/exercise.stories.tsx | 0 .../exercise/exercise.tsx | 0 .../final/final.stories.tsx | 0 .../PolymorphicComponents/final/final.tsx | 24 +++++------ .../PolymorphicComponents/lesson.mdx | 0 .../Portals/exercise/components/modal.tsx | 0 .../Portals/exercise/exercise.stories.tsx | 0 .../02-Silver/Portals/exercise/exercise.tsx | 0 .../Portals/final/components/modal.tsx | 11 +++++ .../02-Silver/Portals/final/final.stories.tsx | 2 +- .../02-Silver/Portals/final/final.tsx | 0 .../02-Silver/Portals/lesson.mdx | 0 .../02-Silver/Provider/exercise/Provider.tsx | 0 .../Provider/exercise/exercise.stories.tsx | 0 .../02-Silver/Provider/exercise/exercise.tsx | 0 .../02-Silver/Provider/final/Provider.tsx | 0 .../Provider/final/final.stories.tsx | 0 .../02-Silver/Provider/final/final.tsx | 0 .../02-Silver/Provider/lesson.mdx | 0 .../RenderProps/exercise/exercise.stories.tsx | 0 .../RenderProps/exercise/exercise.tsx | 0 .../RenderProps/final/final.stories.tsx | 0 .../02-Silver/RenderProps/final/final.tsx | 0 .../02-Silver/RenderProps/lesson.mdx | 0 .../exercise/exercise.stories.tsx | 0 .../StateReducer/exercise/exercise.tsx | 0 .../StateReducer/final/final.stories.tsx | 0 .../02-Silver/StateReducer/final/final.tsx | 7 ++-- .../02-Silver/StateReducer/lesson.mdx | 0 .../exercise/exercise.stories.tsx | 0 .../exercise/exercise.tsx | 0 .../exercise/withPokemon.tsx | 0 .../final/final.stories.tsx | 0 .../HigherOrderComponents/final/final.tsx | 3 +- .../final/withPokemon.tsx | 13 +++--- .../03-Gold/HigherOrderComponents/lesson.mdx | 0 src/shared/hooks/usePokedex.ts | 8 +++- .../modules/PokemonManager/PokemonManager.ts | 4 +- 95 files changed, 88 insertions(+), 75 deletions(-) rename src/course/{02- lessons => 02-lessons}/01-Bronze/ConditionalRendering/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/ConditionalRendering/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/ConditionalRendering/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/ConditionalRendering/final/final.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/ConditionalRendering/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/Hooks/components.tsx (92%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/Hooks/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/Hooks/exercise/exercise.tsx (95%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/Hooks/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/Hooks/final/final.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/Hooks/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/PresentationalAndContainer/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/PresentationalAndContainer/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/PresentationalAndContainer/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/PresentationalAndContainer/final/final.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/PresentationalAndContainer/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/PresentationalAndContainer/mocks.ts (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/PropsCombination/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/PropsCombination/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/PropsCombination/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/PropsCombination/final/final.tsx (91%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/PropsCombination/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/Slots/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/Slots/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/Slots/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/Slots/final/final.tsx (64%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/Slots/icons/index.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/Slots/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/StateColocationVsStateLifting/exercise/components/Form.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/StateColocationVsStateLifting/exercise/components/PokemonOptions.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/StateColocationVsStateLifting/exercise/components/Screen.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/StateColocationVsStateLifting/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/StateColocationVsStateLifting/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/StateColocationVsStateLifting/final/components/Form.tsx (71%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/StateColocationVsStateLifting/final/components/PokemonOptions.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/StateColocationVsStateLifting/final/components/Screen.tsx (92%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/StateColocationVsStateLifting/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/StateColocationVsStateLifting/final/final.tsx (100%) rename src/course/{02- lessons => 02-lessons}/01-Bronze/StateColocationVsStateLifting/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Compound/exercise/components/Accordion.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Compound/exercise/components/Accoridon.module.css (100%) rename src/course/{02- lessons/02-Silver/Compound/final => 02-lessons/02-Silver/Compound/exercise}/components/ChevronDown.tsx (94%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Compound/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Compound/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Compound/final/components/Accordion.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Compound/final/components/Accoridon.module.css (100%) rename src/course/{02- lessons/02-Silver/Compound/exercise => 02-lessons/02-Silver/Compound/final}/components/ChevronDown.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Compound/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Compound/final/final.tsx (98%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Compound/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Controlled/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Controlled/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Controlled/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Controlled/final/final.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Controlled/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/PolymorphicComponents/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/PolymorphicComponents/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/PolymorphicComponents/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/PolymorphicComponents/final/final.tsx (84%) rename src/course/{02- lessons => 02-lessons}/02-Silver/PolymorphicComponents/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Portals/exercise/components/modal.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Portals/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Portals/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Portals/final/components/modal.tsx (88%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Portals/final/final.stories.tsx (95%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Portals/final/final.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Portals/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Provider/exercise/Provider.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Provider/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Provider/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Provider/final/Provider.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Provider/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Provider/final/final.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/Provider/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/RenderProps/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/RenderProps/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/RenderProps/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/RenderProps/final/final.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/RenderProps/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/StateReducer/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/StateReducer/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/StateReducer/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/02-Silver/StateReducer/final/final.tsx (95%) rename src/course/{02- lessons => 02-lessons}/02-Silver/StateReducer/lesson.mdx (100%) rename src/course/{02- lessons => 02-lessons}/03-Gold/HigherOrderComponents/exercise/exercise.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/03-Gold/HigherOrderComponents/exercise/exercise.tsx (100%) rename src/course/{02- lessons => 02-lessons}/03-Gold/HigherOrderComponents/exercise/withPokemon.tsx (100%) rename src/course/{02- lessons => 02-lessons}/03-Gold/HigherOrderComponents/final/final.stories.tsx (100%) rename src/course/{02- lessons => 02-lessons}/03-Gold/HigherOrderComponents/final/final.tsx (96%) rename src/course/{02- lessons => 02-lessons}/03-Gold/HigherOrderComponents/final/withPokemon.tsx (84%) rename src/course/{02- lessons => 02-lessons}/03-Gold/HigherOrderComponents/lesson.mdx (100%) diff --git a/.storybook/components/CodeBlock.tsx b/.storybook/components/CodeBlock.tsx index 9770f78..f58dc53 100644 --- a/.storybook/components/CodeBlock.tsx +++ b/.storybook/components/CodeBlock.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { CodeBlock, shadesOfPurple } from 'react-code-blocks'; -export const Code = ({ children }) => ( +export const Code = ({ children }: { children: string }) => ( ( +}: TextFieldProps) => (
diff --git a/src/course/02- lessons/01-Bronze/Hooks/exercise/exercise.stories.tsx b/src/course/02-lessons/01-Bronze/Hooks/exercise/exercise.stories.tsx similarity index 100% rename from src/course/02- lessons/01-Bronze/Hooks/exercise/exercise.stories.tsx rename to src/course/02-lessons/01-Bronze/Hooks/exercise/exercise.stories.tsx diff --git a/src/course/02- lessons/01-Bronze/Hooks/exercise/exercise.tsx b/src/course/02-lessons/01-Bronze/Hooks/exercise/exercise.tsx similarity index 95% rename from src/course/02- lessons/01-Bronze/Hooks/exercise/exercise.tsx rename to src/course/02-lessons/01-Bronze/Hooks/exercise/exercise.tsx index 875f1bb..7fc3b4a 100644 --- a/src/course/02- lessons/01-Bronze/Hooks/exercise/exercise.tsx +++ b/src/course/02-lessons/01-Bronze/Hooks/exercise/exercise.tsx @@ -1,5 +1,5 @@ import { ChangeEvent, useState } from 'react'; -import { ITextFieldProps, TextFieldComponent } from '../components'; +import { TextFieldProps, TextFieldComponent } from '../components'; /* * Observations @@ -16,7 +16,7 @@ interface IFieldProps { id: string; label: string; errorMessage?: string; - children: (props: ITextFieldProps) => React.ReactNode; + children: (props: TextFieldProps) => React.ReactNode; } const validateTextString = (value: string) => diff --git a/src/course/02- lessons/01-Bronze/Hooks/final/final.stories.tsx b/src/course/02-lessons/01-Bronze/Hooks/final/final.stories.tsx similarity index 100% rename from src/course/02- lessons/01-Bronze/Hooks/final/final.stories.tsx rename to src/course/02-lessons/01-Bronze/Hooks/final/final.stories.tsx diff --git a/src/course/02- lessons/01-Bronze/Hooks/final/final.tsx b/src/course/02-lessons/01-Bronze/Hooks/final/final.tsx similarity index 100% rename from src/course/02- lessons/01-Bronze/Hooks/final/final.tsx rename to src/course/02-lessons/01-Bronze/Hooks/final/final.tsx diff --git a/src/course/02- lessons/01-Bronze/Hooks/lesson.mdx b/src/course/02-lessons/01-Bronze/Hooks/lesson.mdx similarity index 100% rename from src/course/02- lessons/01-Bronze/Hooks/lesson.mdx rename to src/course/02-lessons/01-Bronze/Hooks/lesson.mdx diff --git a/src/course/02- lessons/01-Bronze/PresentationalAndContainer/exercise/exercise.stories.tsx b/src/course/02-lessons/01-Bronze/PresentationalAndContainer/exercise/exercise.stories.tsx similarity index 100% rename from src/course/02- lessons/01-Bronze/PresentationalAndContainer/exercise/exercise.stories.tsx rename to src/course/02-lessons/01-Bronze/PresentationalAndContainer/exercise/exercise.stories.tsx diff --git a/src/course/02- lessons/01-Bronze/PresentationalAndContainer/exercise/exercise.tsx b/src/course/02-lessons/01-Bronze/PresentationalAndContainer/exercise/exercise.tsx similarity index 100% rename from src/course/02- lessons/01-Bronze/PresentationalAndContainer/exercise/exercise.tsx rename to src/course/02-lessons/01-Bronze/PresentationalAndContainer/exercise/exercise.tsx diff --git a/src/course/02- lessons/01-Bronze/PresentationalAndContainer/final/final.stories.tsx b/src/course/02-lessons/01-Bronze/PresentationalAndContainer/final/final.stories.tsx similarity index 100% rename from src/course/02- lessons/01-Bronze/PresentationalAndContainer/final/final.stories.tsx rename to src/course/02-lessons/01-Bronze/PresentationalAndContainer/final/final.stories.tsx diff --git a/src/course/02- lessons/01-Bronze/PresentationalAndContainer/final/final.tsx b/src/course/02-lessons/01-Bronze/PresentationalAndContainer/final/final.tsx similarity index 100% rename from src/course/02- lessons/01-Bronze/PresentationalAndContainer/final/final.tsx rename to src/course/02-lessons/01-Bronze/PresentationalAndContainer/final/final.tsx diff --git a/src/course/02- lessons/01-Bronze/PresentationalAndContainer/lesson.mdx b/src/course/02-lessons/01-Bronze/PresentationalAndContainer/lesson.mdx similarity index 100% rename from src/course/02- lessons/01-Bronze/PresentationalAndContainer/lesson.mdx rename to src/course/02-lessons/01-Bronze/PresentationalAndContainer/lesson.mdx diff --git a/src/course/02- lessons/01-Bronze/PresentationalAndContainer/mocks.ts b/src/course/02-lessons/01-Bronze/PresentationalAndContainer/mocks.ts similarity index 100% rename from src/course/02- lessons/01-Bronze/PresentationalAndContainer/mocks.ts rename to src/course/02-lessons/01-Bronze/PresentationalAndContainer/mocks.ts diff --git a/src/course/02- lessons/01-Bronze/PropsCombination/exercise/exercise.stories.tsx b/src/course/02-lessons/01-Bronze/PropsCombination/exercise/exercise.stories.tsx similarity index 100% rename from src/course/02- lessons/01-Bronze/PropsCombination/exercise/exercise.stories.tsx rename to src/course/02-lessons/01-Bronze/PropsCombination/exercise/exercise.stories.tsx diff --git a/src/course/02- lessons/01-Bronze/PropsCombination/exercise/exercise.tsx b/src/course/02-lessons/01-Bronze/PropsCombination/exercise/exercise.tsx similarity index 100% rename from src/course/02- lessons/01-Bronze/PropsCombination/exercise/exercise.tsx rename to src/course/02-lessons/01-Bronze/PropsCombination/exercise/exercise.tsx diff --git a/src/course/02- lessons/01-Bronze/PropsCombination/final/final.stories.tsx b/src/course/02-lessons/01-Bronze/PropsCombination/final/final.stories.tsx similarity index 100% rename from src/course/02- lessons/01-Bronze/PropsCombination/final/final.stories.tsx rename to src/course/02-lessons/01-Bronze/PropsCombination/final/final.stories.tsx diff --git a/src/course/02- lessons/01-Bronze/PropsCombination/final/final.tsx b/src/course/02-lessons/01-Bronze/PropsCombination/final/final.tsx similarity index 91% rename from src/course/02- lessons/01-Bronze/PropsCombination/final/final.tsx rename to src/course/02-lessons/01-Bronze/PropsCombination/final/final.tsx index 73807fa..cc5a54f 100644 --- a/src/course/02- lessons/01-Bronze/PropsCombination/final/final.tsx +++ b/src/course/02-lessons/01-Bronze/PropsCombination/final/final.tsx @@ -69,7 +69,9 @@ export const Final = ({
{ +interface ButtonProps extends HTMLAttributes { className?: string; iconLeft?: React.ReactNode; iconRight?: React.ReactNode; children: React.ReactNode | React.ReactNode[]; } -const buttonClasses = - 'middle none center rounded-lg bg-blue-500 py-3 px-6 font-sans text-xs font-bold uppercase text-white shadow-md shadow-blue-500/20 transition-all hover:shadow-lg hover:shadow-blue-500/40 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none inline-flex items-center justify-center'; +const buttonClasses = [ + 'middle none center rounded-lg bg-blue-500 py-3 px-6', + 'font-sans text-xs font-bold uppercase text-white', + 'shadow-md shadow-blue-500/20 transition-all', + 'hover:shadow-lg hover:shadow-blue-500/40', + 'focus:opacity-[0.85] focus:shadow-none', + 'active:opacity-[0.85] active:shadow-none', + 'disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none', + 'inline-flex items-center justify-center' +].join(' '); export const Button = ({ className, @@ -18,7 +26,7 @@ export const Button = ({ iconLeft, iconRight, ...rest -}: IButton) => { +}: ButtonProps) => { return (