From cb3582dce06f8162f57658bf37290335a301a46b Mon Sep 17 00:00:00 2001 From: developomp Date: Sun, 30 May 2021 20:15:40 +0900 Subject: [PATCH] improved readability --- source/src/components/Spinner.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/src/components/Spinner.tsx b/source/src/components/Spinner.tsx index 6178537..fe3d44d 100644 --- a/source/src/components/Spinner.tsx +++ b/source/src/components/Spinner.tsx @@ -19,6 +19,8 @@ interface SpinnerProps { } export default class Spinner extends React.Component { + balls: unknown[] = [] + motion = keyframes` from { transform: scale(1, 1); @@ -91,12 +93,12 @@ export default class Spinner extends React.Component { animation: ${this.spin} 10s infinite; ` - balls: unknown[] = [] constructor(props) { super(props) let keyValue = 0 const countBallsInLine = 3 + for (let i = 0; i < countBallsInLine; i++) { for (let j = 0; j < countBallsInLine; j++) { this.balls.push(