File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed
packages/components/src/components/Button Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @devup-ui/components ' : patch
3+ ---
4+
5+ Hotfix button keyframe
Original file line number Diff line number Diff line change 11import { Box , keyframes } from '@devup-ui/react'
22import { SVGProps } from 'react'
33
4- const spin = keyframes ( {
5- '0%' : {
6- transform : 'rotateZ(0deg)' ,
7- } ,
8- '100%' : {
9- transform : 'rotateZ(360deg)' ,
10- } ,
11- } )
12-
134interface IconSpinnerProps extends SVGProps < SVGSVGElement > {
145 type ?: 'whole' | 'partial'
156}
167
178export function IconSpinner ( { type = 'whole' , ...props } : IconSpinnerProps ) {
9+ /**
10+ * TODO: After fixing the keyframes issue, keyframe must be moved to outside function
11+ */
12+ const spin = keyframes ( {
13+ '0%' : {
14+ transform : 'rotateZ(0deg)' ,
15+ } ,
16+ '100%' : {
17+ transform : 'rotateZ(360deg)' ,
18+ } ,
19+ } )
20+
1821 if ( type === 'partial' ) {
1922 return (
2023 < Box
You can’t perform that action at this time.
0 commit comments