removed unnecessary interface
This commit is contained in:
parent
cb3582dce0
commit
cdbe754071
1 changed files with 2 additions and 5 deletions
|
@ -10,9 +10,6 @@ interface BallInterface {
|
||||||
key: string
|
key: string
|
||||||
index: number
|
index: number
|
||||||
}
|
}
|
||||||
interface WrapperInterface {
|
|
||||||
size: number
|
|
||||||
}
|
|
||||||
|
|
||||||
interface SpinnerProps {
|
interface SpinnerProps {
|
||||||
size: number
|
size: number
|
||||||
|
@ -85,7 +82,7 @@ export default class Spinner extends React.Component<SpinnerProps> {
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
Wrapper = styled.div<WrapperInterface>`
|
Wrapper = styled.div`
|
||||||
margin: 5rem auto 0 auto;
|
margin: 5rem auto 0 auto;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
|
@ -114,6 +111,6 @@ export default class Spinner extends React.Component<SpinnerProps> {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <this.Wrapper size={this.props.size}>{this.balls}</this.Wrapper>
|
return <this.Wrapper>{this.balls}</this.Wrapper>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue