Skip to content

Commit

Permalink
fix: switch links
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Jul 2, 2022
1 parent c2f1b65 commit 4f4b343
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/pages/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ function Main() {

useEffect(() => {}, [dispatch]);

const organizeRequests = (id) => {
navigate(`/requests`);
};

const organizeItems = (id) => {
navigate(`/items`);
};

const organizeRequests = (id) => {
navigate(`/requests`);
};

return (
<div className="flex h-screen bg-gray-50 dark:bg-black text-black dark:text-white">
<div className="flex flex-col flex-1 w-full">
Expand All @@ -30,11 +30,11 @@ function Main() {
<p className="text-4xl font-light">EVERYTHING</p>
<br/>
<div className="flex">
<Button className="w-1/2 h-16 mr-2" onClick={organizeRequests}>
<Button className="w-1/2 h-16 mr-2" onClick={organizeItems}>
items
</Button>

<Button className="w-1/2 h-16 ml-2" onClick={organizeItems}>
<Button className="w-1/2 h-16 ml-2" onClick={organizeRequests}>
requests
</Button>
</div>
Expand All @@ -46,3 +46,6 @@ function Main() {
}

export default Main;

doadmin
db-postgresql-nyc1-everything-76464-do-user-11815715-0.b.db.ondigitalocean.com

0 comments on commit 4f4b343

Please sign in to comment.