Skip to content

Commit

Permalink
Change color LoadingComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanM322 committed Jul 12, 2024
1 parent a155228 commit 672d1dd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions rair-front/src/components/common/LoadingComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
import { CircularProgress } from '@mui/material';
import { useSelector } from 'react-redux';
import { RootState } from '../../ducks';
import { ColorStoreType } from '../../ducks/colors/colorStore.types';

const LoadingComponent = ({ size = 100, classes = 'list-wrapper-empty' }) => {
const { iconColor } =
useSelector<RootState, ColorStoreType>((store) => store.colorStore);

return (
<div className={classes}>
{import.meta.env.VITE_TESTNET === 'true' ? (
<CircularProgress
sx={{ color: 'var(--hot-drops-light)' }}
sx={{ color: `${iconColor === '#1486c5' ? '#F95631' : iconColor}` }}
size={size}
thickness={4.6}
/>
) : (
<CircularProgress
sx={{ color: '#E882D5' }}
sx={{ color: `${
iconColor === '#1486c5' ? '#E882D5' : iconColor}` }}
size={size}
thickness={4.6}
/>
Expand Down

0 comments on commit 672d1dd

Please sign in to comment.