Skip to content

Commit

Permalink
refactor: minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
estevanmaito committed Nov 8, 2020
1 parent b0855c7 commit a1e74b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type IconType =
| React.FunctionComponent<{ className: string; 'aria-hidden': boolean }>
| React.ComponentClass<{ className: string; 'aria-hidden': boolean }>

interface Props {
export interface Props {
children?: React.ReactNode
disabled?: boolean
size?: 'larger' | 'large' | 'regular' | 'small' | 'pagination'
Expand Down
2 changes: 1 addition & 1 deletion src/Windmill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Windmill: React.FC<Props> = ({

useLayoutEffect(() => {
if (dark) {
if (mode != null && setMode != null) {
if (setMode != null) {
setMode('dark')
}
document.documentElement.classList.add(`theme-dark`)
Expand Down

0 comments on commit a1e74b3

Please sign in to comment.