🐱😒💋

This commit is contained in:
Elijah Lucian
2021-04-14 21:24:00 -06:00
parent 486955a861
commit c73bcf8a57
18 changed files with 7121 additions and 5539 deletions
+5 -4
View File
@@ -1,18 +1,19 @@
import { useUserContext } from '../contexts/UserContext'
import { Redirect, Route, Switch } from 'react-router'
import { Route, Switch } from 'react-router'
import { Link } from 'react-router-dom'
import { Dashboard } from './pages/Dashboard'
import { UserForm } from './components/UserForm'
import { TransactionList } from './components/TransactionList'
import { AccountForm } from './components/AccountForm'
import { Login } from './components/Login'
export const CoreLayout = () => {
const { user, accounts, selectedAccount } = useUserContext()
const { user, selectedAccount } = useUserContext()
if (!accounts?.length) <Redirect to="/account/new" />
if (!user) return <Login />
return (
<div className="app" id="appElement">
<div className="app">
<nav>
<Link to="/">Home</Link>
<Link to="/select">Select Budget</Link>