Skip to content

Commit

Permalink
disable edit/delete stuff for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Norton committed Dec 25, 2023
1 parent be23ada commit cfa43e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
12 changes: 3 additions & 9 deletions app/src/routes/Animations.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
Button,
List,
ListItem,
ListItemSuffix,
Typography,
} from "@material-tailwind/react"
import { Button, List, ListItem, Typography } from "@material-tailwind/react"
import { useNavigate } from "react-router-dom"
import {
useGetAnimationsQuery,
Expand Down Expand Up @@ -44,7 +38,7 @@ export default function Config() {
</Typography>
<Typography>{animation.name} </Typography>
</div>
<ListItemSuffix className="flex gap-2 ">
{/* <ListItemSuffix className="flex gap-2 ">
<Button
size="sm"
color="blue"
Expand All @@ -59,7 +53,7 @@ export default function Config() {
>
Delete
</Button>
</ListItemSuffix>
</ListItemSuffix> */}
</ListItem>
))}
</List>
Expand Down
2 changes: 1 addition & 1 deletion app/src/routes/DeviceAnimations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const DeviceAnimations = () => {
<div className="flex flex-col gap-2">
<Typography variant="h3">{device.name}</Typography>
<Tabs value="animations">
<TabsHeader>
<TabsHeader placeholder={""}>
<Tab value={"animations"}>Animations</Tab>
<Tab value={"solid"}>Color</Tab>
</TabsHeader>
Expand Down
4 changes: 2 additions & 2 deletions app/src/routes/Devices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ export default function DeviceList() {
<ListItem key={lamp.guid} className="py-1 pr-1 pl-4">
{lamp.currentIP}: {lamp.name}{" "}
<ListItemSuffix>
<Button color="amber" onClick={() => handleEditLamp(lamp.guid)}>
{/* <Button color="amber" onClick={() => handleEditLamp(lamp.guid)}>
{" "}
Edit
</Button>
<Button color="amber" onClick={() => handleDeleteLamp(lamp.guid)}>
{" "}
Delete
</Button>
</Button> */}
</ListItemSuffix>
</ListItem>
))}
Expand Down

0 comments on commit cfa43e6

Please sign in to comment.