Skip to content

Commit

Permalink
BUG: Fix plants endpoint on home page
Browse files Browse the repository at this point in the history
  • Loading branch information
mseng10 committed Jul 14, 2024
1 parent f482fa6 commit 63a3a94
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions client/react/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function App() {
<Route path="/system/view" element={<Systems />} />
<Route path="/alerts" element={<Alerts />} />
<Route path="/todos" element={<Todos />} />

<Route path="/plant/create" element={<NewPlantForm />} />
<Route path="/system/create" element={<NewSystemForm />} />
<Route path="/todo/create" element={<NewTodoForm /> } />
Expand Down
20 changes: 10 additions & 10 deletions client/react/src/modals/CreateOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,41 +41,41 @@ const CreateOptions = () => {
<ListItemText primary={"Plant"} />
</ListItemButton>
</ListItem>
<ListItem key={CreateForm.TYPE}>
<ListItem key={CreateForm.TYPE} backgroundColor='secondary'>
<ListItemButton onClick={() => navigate("/type/create")}>
<ListItemIcon color="info">
<ListItemIcon color="secondary">
<MergeTypeSharpIcon />
</ListItemIcon>
<ListItemText primary={"Type"} />
</ListItemButton>
</ListItem>
<ListItem key={CreateForm.GENUS}>
<ListItemButton onClick={() => navigate("/genus/create")}>
<ListItemIcon color="info">
<ListItem key={CreateForm.GENUS} backgroundColor='secondary'>
<ListItemButton onClick={() => navigate("/genus/create")}>
<ListItemIcon color="secondary">
<FingerprintSharpIcon />
</ListItemIcon>
<ListItemText primary={"Genus"} />
</ListItemButton>
</ListItem>
<ListItem key={CreateForm.SYSTEM}>
<ListItem key={CreateForm.SYSTEM} backgroundColor='secondary'>
<ListItemButton onClick={() => navigate("/system/create")}>
<ListItemIcon color="info">
<ListItemIcon color="secondary">
<PointOfSaleIcon />
</ListItemIcon>
<ListItemText primary={"System"} />
</ListItemButton>
</ListItem>
<ListItem key={CreateForm.LIGHT}>
<ListItem key={CreateForm.LIGHT} backgroundColor='secondary'>
<ListItemButton onClick={() => navigate("/light/create")}>
<ListItemIcon color="info">
<ListItemIcon color="secondary">
<TungstenSharpIcon />
</ListItemIcon>
<ListItemText primary={"Light"} />
</ListItemButton>
</ListItem>
<ListItem key={CreateForm.TODO}>
<ListItemButton onClick={() => navigate("/todo/create")}>
<ListItemIcon color="info">
<ListItemIcon color="secondary">
<FormatListNumberedIcon />
</ListItemIcon>
<ListItemText primary={"TODO"} />
Expand Down
2 changes: 1 addition & 1 deletion client/react/src/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Home = () => {
system = {systems[0]}
/>
</div>
<IconButton size="large" className={`home_icon`} color="primary" onClick ={()=>{ navigate("/plants")}}>
<IconButton size="large" className={`home_icon`} color="primary" onClick ={()=>{ navigate("/plant/view")}}>
<GrassOutlinedIcon className='home_icon'/>
</IconButton>
</div>
Expand Down

0 comments on commit 63a3a94

Please sign in to comment.