|
|
@ -9,6 +9,7 @@ import { selectAuth } from '../../store/authReducer' |
|
|
import Router from 'next/router' |
|
|
import Router from 'next/router' |
|
|
import { useEffect } from 'react' |
|
|
import { useEffect } from 'react' |
|
|
import SendSMS from '../../components/dashboard/SendSMS' |
|
|
import SendSMS from '../../components/dashboard/SendSMS' |
|
|
|
|
|
import ErrorBoundary from '../../components/ErrorBoundary' |
|
|
|
|
|
|
|
|
export default function Dashboard() { |
|
|
export default function Dashboard() { |
|
|
const { user: currentUser } = useSelector(selectAuth) |
|
|
const { user: currentUser } = useSelector(selectAuth) |
|
|
@ -27,7 +28,7 @@ export default function Dashboard() { |
|
|
<> |
|
|
<> |
|
|
<UserStats /> |
|
|
<UserStats /> |
|
|
<Box maxW='7xl' mx={'auto'} pt={5} px={{ base: 2, sm: 12, md: 17 }}> |
|
|
<Box maxW='7xl' mx={'auto'} pt={5} px={{ base: 2, sm: 12, md: 17 }}> |
|
|
<Flex justifyContent='space-evenly' > |
|
|
|
|
|
|
|
|
<Flex justifyContent='space-evenly'> |
|
|
<GenerateApiKey /> |
|
|
<GenerateApiKey /> |
|
|
<SendSMS /> |
|
|
<SendSMS /> |
|
|
</Flex> |
|
|
</Flex> |
|
|
@ -35,10 +36,14 @@ export default function Dashboard() { |
|
|
<br /> |
|
|
<br /> |
|
|
<SimpleGrid columns={{ base: 1, md: 2 }} spacing={{ base: 5, lg: 8 }}> |
|
|
<SimpleGrid columns={{ base: 1, md: 2 }} spacing={{ base: 5, lg: 8 }}> |
|
|
<Box backdropBlur='2xl' borderWidth='1px' borderRadius='lg'> |
|
|
<Box backdropBlur='2xl' borderWidth='1px' borderRadius='lg'> |
|
|
|
|
|
<ErrorBoundary> |
|
|
<ApiKeyList /> |
|
|
<ApiKeyList /> |
|
|
|
|
|
</ErrorBoundary> |
|
|
</Box> |
|
|
</Box> |
|
|
<Box backdropBlur='2xl' borderWidth='1px' borderRadius='lg'> |
|
|
<Box backdropBlur='2xl' borderWidth='1px' borderRadius='lg'> |
|
|
|
|
|
<ErrorBoundary> |
|
|
<DeviceList /> |
|
|
<DeviceList /> |
|
|
|
|
|
</ErrorBoundary> |
|
|
</Box> |
|
|
</Box> |
|
|
</SimpleGrid> |
|
|
</SimpleGrid> |
|
|
</Box> |
|
|
</Box> |
|
|
|