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.

37 lines
942 B

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';
import Success from './screens/SuccessScreen';
import './App.css';
import Verify from './screens/VerifyScreen';
import Scanner from './screens/ScannerScreen';
function App() {
return (
<ChakraProvider theme={theme}>
<Switch>
<Route path="/home">
<Home />
</Route>
<Route path="/login">
<Login />
</Route>
<Route path="/success">
<Success />
</Route>
<Route path="/scanner">
<Scanner />
</Route>
<Route path="/verify/:id" component={Verify}/>
<Route path="/">
<Redirect to="/home" />
</Route>
</Switch>
</ChakraProvider>
);
}
export default App;