Skip to content

Commit 70728de

Browse files
committed
fix: pages build error
1 parent 28657fc commit 70728de

File tree

9 files changed

+8
-16
lines changed

9 files changed

+8
-16
lines changed

src/components/ui/Input.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as React from "react";
22
import { cn } from "@/lib/utils";
33

4-
export interface InputProps
5-
extends React.InputHTMLAttributes<HTMLInputElement> {}
4+
export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
65

76
const Input = React.forwardRef<HTMLInputElement, InputProps>(
87
({ className, type, ...props }, ref) => {

src/components/ui/Textarea.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as React from "react";
22
import { cn } from "@/lib/utils";
33

4-
export interface TextareaProps
5-
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
4+
export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
65

76
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
87
({ className, ...props }, ref) => {

src/pages/components/dialog.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
DialogTrigger,
1717
Input,
1818
Label,
19-
Separator,
2019
Tabs,
2120
TabsContent,
2221
TabsList,

src/pages/components/icon-button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
Add01Icon,
2222
Edit01Icon,
2323
Share01Icon,
24-
Favourite01Icon,
24+
FavouriteIcon,
2525
} from "hugeicons-react";
2626

2727
export default function IconButtonPage() {
@@ -85,7 +85,7 @@ export default function IconButtonPage() {
8585
<IconButton icon={Add01Icon} variant="default" aria-label="Add" />
8686
<IconButton icon={Edit01Icon} variant="secondary" aria-label="Edit" />
8787
<IconButton icon={Share01Icon} variant="outline" aria-label="Share" />
88-
<IconButton icon={Favourite01Icon} variant="ghost" aria-label="Favorite" />
88+
<IconButton icon={FavouriteIcon} variant="ghost" aria-label="Favorite" />
8989
<IconButton icon={Delete01Icon} variant="destructive" aria-label="Delete" />
9090
</CardContent>
9191
</Card>
@@ -99,7 +99,7 @@ export default function IconButtonPage() {
9999
<div className="inline-flex items-center gap-1 rounded-lg border border-[hsl(var(--border))] p-1">
100100
<IconButton icon={Edit01Icon} variant="ghost" size="sm" aria-label="Edit" />
101101
<IconButton icon={Share01Icon} variant="ghost" size="sm" aria-label="Share" />
102-
<IconButton icon={Favourite01Icon} variant="ghost" size="sm" aria-label="Favorite" />
102+
<IconButton icon={FavouriteIcon} variant="ghost" size="sm" aria-label="Favorite" />
103103
<Separator orientation="vertical" className="h-6 mx-1" />
104104
<IconButton icon={Delete01Icon} variant="ghost" size="sm" aria-label="Delete" />
105105
</div>

src/pages/components/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ import {
2222
Alert01Icon,
2323
Loading03Icon,
2424
Message01Icon,
25-
Settings01Icon,
2625
ArrowDown01Icon,
2726
TextIcon,
2827
Tick01Icon,
2928
GridIcon,
3029
SlidersHorizontalIcon,
31-
LayersIcon,
30+
Layers01Icon,
3231
} from "hugeicons-react";
3332

3433
const componentCategories = [
@@ -64,14 +63,14 @@ const componentCategories = [
6463
components: [
6564
{ href: "/components/alert", title: "Alert", desc: "Alert messages and notifications", icon: Alert01Icon },
6665
{ href: "/components/progress", title: "Progress", desc: "Progress indicators and bars", icon: Loading03Icon },
67-
{ href: "/components/skeleton", title: "Skeleton", desc: "Loading placeholder components", icon: LayersIcon },
66+
{ href: "/components/skeleton", title: "Skeleton", desc: "Loading placeholder components", icon: Layers01Icon },
6867
],
6968
},
7069
{
7170
title: "Overlay",
7271
components: [
7372
{ href: "/components/dialog", title: "Dialog", desc: "Modal dialogs for confirmations", icon: Message01Icon },
74-
{ href: "/components/sheet", title: "Sheet", desc: "Slide-out panels (bottom sheets)", icon: LayersIcon },
73+
{ href: "/components/sheet", title: "Sheet", desc: "Slide-out panels (bottom sheets)", icon: Layers01Icon },
7574
{ href: "/components/dropdown-menu", title: "DropdownMenu", desc: "Context and action menus", icon: Menu01Icon },
7675
{ href: "/components/tooltip", title: "Tooltip", desc: "Hover tooltips for hints", icon: Message01Icon },
7776
],

src/pages/components/progress.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import Head from "next/head";
22
import { useState, useEffect } from "react";
33
import {
44
Badge,
5-
Button,
65
Card,
76
CardContent,
87
CardDescription,

src/pages/components/sheet.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
SheetTrigger,
1717
Input,
1818
Label,
19-
Separator,
2019
Tabs,
2120
TabsContent,
2221
TabsList,

src/pages/components/slider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717

1818
export default function SliderPage() {
1919
const [value, setValue] = useState([50]);
20-
const [rangeValue, setRangeValue] = useState([25, 75]);
2120

2221
return (
2322
<div className="py-8">

src/pages/components/tabs.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Head from "next/head";
22
import {
33
Badge,
4-
Button,
54
Card,
65
CardContent,
76
CardDescription,

0 commit comments

Comments
 (0)