File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,21 @@ import styles from '@styles/modules/Spinner.module.scss';
4
4
5
5
export type SpinnerProps = {
6
6
className ?: string ;
7
+ spinnerClassName ?: string ;
7
8
} ;
8
9
9
10
export const Spinner : React . FC < SpinnerProps > = ( props ) => {
10
11
return (
11
12
< div
12
- className = { `flex justify-center items-center ${ styles . loadingSpinnerContainer } rounded-sm ${ props . className } ` }
13
+ className = { `flex justify-center items-center ${
14
+ styles . loadingSpinnerContainer
15
+ } rounded-sm ${ props . className || '' } `}
13
16
>
14
- < div
15
- className = { `w-9 h-9 bg-brand-gradient rounded-sm ${ styles . loadingSpinner } ` }
16
- > </ div >
17
+ < div className = { `${ props . spinnerClassName || '' } ` } >
18
+ < div
19
+ className = { `w-9 h-9 bg-brand-gradient rounded-sm ${ styles . loadingSpinner } ` }
20
+ > </ div >
21
+ </ div >
17
22
</ div >
18
23
) ;
19
24
} ;
You can’t perform that action at this time.
0 commit comments