Skip to content

Commit

Permalink
clean unused imports to build
Browse files Browse the repository at this point in the history
  • Loading branch information
HuakunShen committed May 7, 2024
1 parent de5bab2 commit 9160f09
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 56 deletions.
52 changes: 1 addition & 51 deletions devclean-ui/src/components/about-drawer.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import * as React from "react";
import { MinusIcon, PlusIcon, InfoCircledIcon } from "@radix-ui/react-icons";
import { InfoCircledIcon } from "@radix-ui/react-icons";
import { Button } from "@/components/ui/button";
import {
Drawer,
DrawerClose,
DrawerContent,
DrawerDescription,
DrawerFooter,
Expand All @@ -13,55 +11,7 @@ import {
} from "@/components/ui/drawer";
import { About } from "./about";

const data = [
{
goal: 400,
},
{
goal: 300,
},
{
goal: 200,
},
{
goal: 300,
},
{
goal: 200,
},
{
goal: 278,
},
{
goal: 189,
},
{
goal: 239,
},
{
goal: 300,
},
{
goal: 200,
},
{
goal: 278,
},
{
goal: 189,
},
{
goal: 349,
},
];

export function AboutDrawer() {
const [goal, setGoal] = React.useState(350);

function onClick(adjustment: number) {
setGoal(Math.max(200, Math.min(400, goal + adjustment)));
}

return (
<Drawer>
<DrawerTrigger asChild>
Expand Down
4 changes: 0 additions & 4 deletions devclean-ui/src/components/about-sheet.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import {
Sheet,
SheetClose,
SheetContent,
SheetDescription,
SheetFooter,
SheetHeader,
SheetTitle,
SheetTrigger,
Expand Down
1 change: 0 additions & 1 deletion devclean-ui/src/components/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
FileIcon,
MagnifyingGlassIcon,
} from "@radix-ui/react-icons";
import { AboutDrawer } from "../about-drawer";
import { AboutSheet } from "../about-sheet";

export function HomePage() {
Expand Down

0 comments on commit 9160f09

Please sign in to comment.