Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit 98a6840

Browse files
committed
fix: moves spin animation definition inside spinner component
1 parent 7fa1d28 commit 98a6840

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

src/components/hoc/WithSpinner.css

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/components/hoc/WithSpinner.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import React from 'react'
22
import { makeStyles } from '@material-ui/core/styles'
33
import { logoBlueIcon } from '../../assets/images'
4-
import './WithSpinner.css'
54

65
const useStyles = makeStyles(() => ({
6+
'@keyframes spin': {
7+
'0%': { transform: 'rotate(0deg)' },
8+
'100%': { transform: 'rotate(360deg)' },
9+
},
710
root: {
811
position: 'relative',
912
},
@@ -23,8 +26,7 @@ const useStyles = makeStyles(() => ({
2326
width: '50px',
2427
height: '50px',
2528
border: 'none',
26-
animation: 'spin 2s ease-in-out infinite',
27-
WebkitAnimation: 'spin 2s ease-in-out infinite',
29+
animation: '$spin 2s ease-in-out infinite',
2830
},
2931
}))
3032

0 commit comments

Comments
 (0)