You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import {
|
|
|
|
ChakraProvider,
|
|
|
|
theme
|
|
|
|
} from '@chakra-ui/react';
|
|
|
|
import { React } from 'react';
|
|
|
|
import { Redirect, Route, Switch } from 'react-router-dom';
|
|
|
|
import Home from './screens/HomeScreen'
|
|
|
|
import Login from './screens/LoginScreen'
|
|
|
|
|
|
|
|
|
|
|
|
function App() {
|
|
|
|
return (
|
|
|
|
<ChakraProvider theme={theme}>
|
|
|
|
<Switch>
|
|
|
|
<Route path="/home">
|
|
|
|
<Home />
|
|
|
|
</Route>
|
|
|
|
<Route path="/login">
|
|
|
|
<Login />
|
|
|
|
</Route>
|
|
|
|
<Route path="/validate">
|
|
|
|
</Route>
|
|
|
|
<Route path="/">
|
|
|
|
<Redirect to="/home" />
|
|
|
|
</Route>
|
|
|
|
</Switch>
|
|
|
|
</ChakraProvider>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|