From 362301a4a55f7f6f549ca476edfba534f82bf2fe Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 6 Dec 2022 19:36:54 -0800 Subject: [PATCH] Further fix TS error --- components/Button/index.tsx | 6 +++--- components/GridRep/index.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Button/index.tsx b/components/Button/index.tsx index 9cd509b6..e87e7ff7 100644 --- a/components/Button/index.tsx +++ b/components/Button/index.tsx @@ -12,7 +12,7 @@ interface Props active?: boolean blended?: boolean contained?: boolean - size: 'small' | 'medium' | 'large' + buttonSize?: 'small' | 'medium' | 'large' text?: string } @@ -20,11 +20,11 @@ const defaultProps = { active: false, blended: false, contained: false, - size: 'medium' as const, + buttonSize: 'medium' as const, } const Button = React.forwardRef(function button( - { accessoryIcon, active, blended, contained, size, text, ...props }, + { accessoryIcon, active, blended, contained, buttonSize, text, ...props }, forwardedRef ) { const classes = classNames( diff --git a/components/GridRep/index.tsx b/components/GridRep/index.tsx index 56b00f1a..dbd13316 100644 --- a/components/GridRep/index.tsx +++ b/components/GridRep/index.tsx @@ -167,7 +167,7 @@ const GridRep = (props: Props) => { accessoryIcon={} active={props.favorited} contained={true} - size="small" + buttonSize="small" onClick={sendSaveData} /> ) : (