Skip to content
This repository was archived by the owner on Jul 9, 2019. It is now read-only.

Commit fe3f0d7

Browse files
committed
fix: Set size if bar is circular
fix: componentWillUnmount misspelled
1 parent 556c308 commit fe3f0d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/spinner.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ const SpinnerContainer: StatelessComponent <{
2828
`
2929

3030
const StyledProgressBar: any = styled(ProgressBar)`
31-
${({type}) => type === 'circular' && `
32-
width: ${({size}) => size}px !important;
33-
height: ${({size}) => size}px !important;
31+
${({size, type}) => type === 'circular' && `
32+
width: ${size}px !important;
33+
height: ${size}px !important;
3434
`}
3535
`
3636

@@ -92,7 +92,7 @@ export const enhance = compose(
9292
}
9393
},
9494

95-
componentWillUnount() {
95+
componentWillUnmount() {
9696
if (this.timeout) {
9797
clearTimeout(this.timeout)
9898
}

0 commit comments

Comments
 (0)