improved readability

This commit is contained in:
Kim, Jimin 2021-05-30 20:15:40 +09:00
parent 62fdce6ae5
commit cb3582dce0

View file

@ -19,6 +19,8 @@ interface SpinnerProps {
} }
export default class Spinner extends React.Component<SpinnerProps> { export default class Spinner extends React.Component<SpinnerProps> {
balls: unknown[] = []
motion = keyframes` motion = keyframes`
from { from {
transform: scale(1, 1); transform: scale(1, 1);
@ -91,12 +93,12 @@ export default class Spinner extends React.Component<SpinnerProps> {
animation: ${this.spin} 10s infinite; animation: ${this.spin} 10s infinite;
` `
balls: unknown[] = []
constructor(props) { constructor(props) {
super(props) super(props)
let keyValue = 0 let keyValue = 0
const countBallsInLine = 3 const countBallsInLine = 3
for (let i = 0; i < countBallsInLine; i++) { for (let i = 0; i < countBallsInLine; i++) {
for (let j = 0; j < countBallsInLine; j++) { for (let j = 0; j < countBallsInLine; j++) {
this.balls.push( this.balls.push(