Skip to content
Snippets Groups Projects
StyledBlackSpinner.tsx 527 B
Newer Older
  • Learn to ignore specific revisions
  • Yoan VALLET's avatar
    Yoan VALLET committed
    import React from 'react'
    import { withStyles } from '@material-ui/core/styles'
    import MuiCircularProgress, {
      CircularProgressProps,
    } from '@material-ui/core/CircularProgress'
    
    const SpinnerBase = withStyles({
      root: {
        color: 'var(--black)',
      },
    })(MuiCircularProgress)
    
    
    Yoan VALLET's avatar
    Yoan VALLET committed
    type StyledBlackSpinnerProps = CircularProgressProps
    
    Yoan VALLET's avatar
    Yoan VALLET committed
    const StyledBlackSpinner: React.ComponentType<StyledBlackSpinnerProps> = ({
    
    Yoan VALLET's avatar
    Yoan VALLET committed
      ...props
    
    Yoan VALLET's avatar
    Yoan VALLET committed
    }: StyledBlackSpinnerProps) => {
    
    Yoan VALLET's avatar
    Yoan VALLET committed
      return <SpinnerBase {...props} />
    }
    
    
    Yoan VALLET's avatar
    Yoan VALLET committed
    export default StyledBlackSpinner