Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
fix: apply Dion type suggestions #182
Browse files Browse the repository at this point in the history
Co-authored-by: diondiondion <[email protected]>
  • Loading branch information
cboyce183 and diondiondion authored Mar 25, 2022
1 parent 15db782 commit c6aabed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Icon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ interface CustomIconProps {
name: string,
scale: number,
size: string,
spacingLeft: any, // seems this can take a string or a number, not good!
spacingRight: any,
spacingLeft: string | number,
spacingRight: string | number,
theme: LocalThemeSection
}

Expand Down
5 changes: 3 additions & 2 deletions src/icons/BaseSvg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ interface StyledIconBase {
spacingLeft?: string,
spacingRight?: string,
scale?: number,
vAlign?: string, // not sure about this one
vAlign?: boolean,
dimmed?: boolean,
disablePointerEvents?: boolean,
flip?: number // also not sure about this one
flip?: 'x' | 'y',
rotate?: number,
}

const Svg = styled.svg.withConfig({shouldForwardProp})<StyledIconBase>`
Expand Down

0 comments on commit c6aabed

Please sign in to comment.