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
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<HTMLButtonElement, Props>(function button(
{ accessoryIcon, active, blended, contained, size, text, ...props },
{ accessoryIcon, active, blended, contained, buttonSize, text, ...props },
forwardedRef
) {
const classes = classNames(

View file

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