Further fix TS error

This commit is contained in:
Justin Edmund 2022-12-06 19:36:54 -08:00
parent 600f3c2ec7
commit 362301a4a5
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ interface Props
active?: boolean active?: boolean
blended?: boolean blended?: boolean
contained?: boolean contained?: boolean
size: 'small' | 'medium' | 'large' buttonSize?: 'small' | 'medium' | 'large'
text?: string text?: string
} }
@ -20,11 +20,11 @@ const defaultProps = {
active: false, active: false,
blended: false, blended: false,
contained: false, contained: false,
size: 'medium' as const, buttonSize: 'medium' as const,
} }
const Button = React.forwardRef<HTMLButtonElement, Props>(function button( const Button = React.forwardRef<HTMLButtonElement, Props>(function button(
{ accessoryIcon, active, blended, contained, size, text, ...props }, { accessoryIcon, active, blended, contained, buttonSize, text, ...props },
forwardedRef forwardedRef
) { ) {
const classes = classNames( const classes = classNames(

View file

@ -167,7 +167,7 @@ const GridRep = (props: Props) => {
accessoryIcon={<SaveIcon class="stroke" />} accessoryIcon={<SaveIcon class="stroke" />}
active={props.favorited} active={props.favorited}
contained={true} contained={true}
size="small" buttonSize="small"
onClick={sendSaveData} onClick={sendSaveData}
/> />
) : ( ) : (