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.

35 lines
838 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 Create from './screens/CreateScreen';
import Success from './screens/SuccessScreen';
import './App.css';
function App() {
return (
<ChakraProvider theme={theme}>
<Switch>
<Route path="/home">
<Home />
</Route>
<Route path="/login">
<Login />
</Route>
<Route path="/create">
<Create />
</Route>
<Route path="/success">
<Success />
</Route>
<Route path="/">
<Redirect to="/home" />
</Route>
</Switch>
</ChakraProvider>
);
}
export default App;