replace loading state with LoadingComponent in CircleSettings
This commit is contained in:
@@ -5,12 +5,11 @@ import {
|
|||||||
Card,
|
Card,
|
||||||
Chip,
|
Chip,
|
||||||
CircularProgress,
|
CircularProgress,
|
||||||
Container,
|
|
||||||
Divider,
|
Divider,
|
||||||
Input,
|
Input,
|
||||||
Option,
|
Option,
|
||||||
Select,
|
Select,
|
||||||
Typography,
|
Typography
|
||||||
} from '@mui/joy'
|
} from '@mui/joy'
|
||||||
import { useQueryClient } from '@tanstack/react-query'
|
import { useQueryClient } from '@tanstack/react-query'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
@@ -28,6 +27,7 @@ import {
|
|||||||
LeaveCircle,
|
LeaveCircle,
|
||||||
UpdateMemberRole,
|
UpdateMemberRole,
|
||||||
} from '../../utils/Fetcher'
|
} from '../../utils/Fetcher'
|
||||||
|
import LoadingComponent from '../components/Loading'
|
||||||
import ConfirmationModal from '../Modals/Inputs/ConfirmationModal'
|
import ConfirmationModal from '../Modals/Inputs/ConfirmationModal'
|
||||||
import SettingsLayout from './SettingsLayout'
|
import SettingsLayout from './SettingsLayout'
|
||||||
|
|
||||||
@@ -114,15 +114,11 @@ const CircleSettings = () => {
|
|||||||
}, [circleMembers, userProfile])
|
}, [circleMembers, userProfile])
|
||||||
|
|
||||||
if (!userProfile) {
|
if (!userProfile) {
|
||||||
return (
|
return <LoadingComponent />
|
||||||
<SettingsLayout title="Circle Settings">
|
|
||||||
<CircularProgress />
|
|
||||||
</SettingsLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SettingsLayout title="Circle Settings">
|
<SettingsLayout title='Circle Settings'>
|
||||||
<div className='grid gap-4'>
|
<div className='grid gap-4'>
|
||||||
<Typography level='body-md'>
|
<Typography level='body-md'>
|
||||||
Your account is automatically connected to a Circle when you create or
|
Your account is automatically connected to a Circle when you create or
|
||||||
|
|||||||
Reference in New Issue
Block a user