users screen + userCard component
Some checks failed
Some checks failed
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import React, { useEffect, Suspense } from 'react'
|
||||
import { Routes, Route, useNavigate } from 'react-router-dom'
|
||||
import { Provider } from 'react-redux'
|
||||
import { getNavigationsValue } from '@ijl/cli'
|
||||
import { Box, Container, Spinner, VStack } from '@chakra-ui/react'
|
||||
|
||||
import {
|
||||
CourseListPage,
|
||||
@@ -8,20 +10,8 @@ import {
|
||||
LessonListPage,
|
||||
UserPage,
|
||||
} from './pages'
|
||||
import { getNavigationsValue } from '@ijl/cli'
|
||||
import { Box, Container, Spinner, VStack } from '@chakra-ui/react'
|
||||
|
||||
const Redirect = ({ path }) => {
|
||||
const navigate = useNavigate()
|
||||
|
||||
useEffect(() => {
|
||||
navigate(path)
|
||||
}, [])
|
||||
|
||||
return null
|
||||
}
|
||||
|
||||
const Wrapper = ({ children }) => (
|
||||
const Wrapper = ({ children }: { children: React.ReactElement }) => (
|
||||
<Suspense
|
||||
fallback={
|
||||
<Container>
|
||||
|
||||
Reference in New Issue
Block a user