chore: label 컴포넌트 적용
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
|||||||
useReactTable,
|
useReactTable,
|
||||||
type RowSelectionState,
|
type RowSelectionState,
|
||||||
} from "@tanstack/react-table";
|
} from "@tanstack/react-table";
|
||||||
import { Button, DataTable, Input } from "@common/components";
|
import { Button, DataTable, Input, Label } from "@common/components";
|
||||||
import { ENDPOINT } from "@/shared/config";
|
import { ENDPOINT } from "@/shared/config";
|
||||||
import { ImageApi } from "../api/image-service";
|
import { ImageApi } from "../api/image-service";
|
||||||
import { columns } from "../model/table-columns";
|
import { columns } from "../model/table-columns";
|
||||||
@@ -60,9 +60,9 @@ function ImagePage() {
|
|||||||
<div className="card card-border !mt-6">
|
<div className="card card-border !mt-6">
|
||||||
<div className="card card-border">
|
<div className="card card-border">
|
||||||
<form onSubmit={handleSubmit} className="flex items-center gap-2 p-2">
|
<form onSubmit={handleSubmit} className="flex items-center gap-2 p-2">
|
||||||
<label htmlFor="" className="mr-2 text-label">
|
<Label htmlFor="" className="mr-2 text-label">
|
||||||
이미지명
|
이미지명
|
||||||
</label>
|
</Label>
|
||||||
<Input
|
<Input
|
||||||
className="h-[3.2rem] w-[24rem] rounded-sm !text-[1.3rem]"
|
className="h-[3.2rem] w-[24rem] rounded-sm !text-[1.3rem]"
|
||||||
value={imageQuery.keyword}
|
value={imageQuery.keyword}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import {
|
|||||||
DialogFooter,
|
DialogFooter,
|
||||||
DialogClose,
|
DialogClose,
|
||||||
Checkbox,
|
Checkbox,
|
||||||
|
Label,
|
||||||
} from "@common/components";
|
} from "@common/components";
|
||||||
import { Form, FormControl, FormField, FormItem } from "@/shared/ui/form";
|
import { Form, FormControl, FormField, FormItem } from "@/shared/ui/form";
|
||||||
import { ENDPOINT } from "@/shared/config";
|
import { ENDPOINT } from "@/shared/config";
|
||||||
@@ -267,16 +268,16 @@ function DomainManagementDialog({
|
|||||||
value="Y"
|
value="Y"
|
||||||
id={`useY-${i}`}
|
id={`useY-${i}`}
|
||||||
/>
|
/>
|
||||||
<label htmlFor={`useY-${i}`}>예</label>
|
<Label htmlFor={`useY-${i}`}>예</Label>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center space-x-2">
|
<div className="flex items-center space-x-2">
|
||||||
<RadioGroupItem
|
<RadioGroupItem
|
||||||
value="N"
|
value="N"
|
||||||
id={`useN-${i}`}
|
id={`useN-${i}`}
|
||||||
/>
|
/>
|
||||||
<label htmlFor={`useN-${i}`}>
|
<Label htmlFor={`useN-${i}`}>
|
||||||
아니오
|
아니오
|
||||||
</label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import {
|
|||||||
DialogFooter,
|
DialogFooter,
|
||||||
DialogClose,
|
DialogClose,
|
||||||
Checkbox,
|
Checkbox,
|
||||||
|
Label,
|
||||||
} from "@common/components";
|
} from "@common/components";
|
||||||
import { Form, FormControl, FormField, FormItem } from "@/shared/ui/form";
|
import { Form, FormControl, FormField, FormItem } from "@/shared/ui/form";
|
||||||
import { ENDPOINT } from "@/shared/config";
|
import { ENDPOINT } from "@/shared/config";
|
||||||
@@ -232,16 +233,16 @@ function IPManagementDialog({
|
|||||||
value="Y"
|
value="Y"
|
||||||
id={`prmY-${i}`}
|
id={`prmY-${i}`}
|
||||||
/>
|
/>
|
||||||
<label htmlFor={`prmY-${i}`}>예</label>
|
<Label htmlFor={`prmY-${i}`}>예</Label>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center space-x-2">
|
<div className="flex items-center space-x-2">
|
||||||
<RadioGroupItem
|
<RadioGroupItem
|
||||||
value="N"
|
value="N"
|
||||||
id={`prmN-${i}`}
|
id={`prmN-${i}`}
|
||||||
/>
|
/>
|
||||||
<label htmlFor={`prmN-${i}`}>
|
<Label htmlFor={`prmN-${i}`}>
|
||||||
아니오
|
아니오
|
||||||
</label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { useRouter } from "next/navigation";
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { useQuery } from "@tanstack/react-query";
|
import { useQuery } from "@tanstack/react-query";
|
||||||
import { getCoreRowModel, useReactTable } from "@tanstack/react-table";
|
import { getCoreRowModel, useReactTable } from "@tanstack/react-table";
|
||||||
import { Button, DataTable, Input } from "@common/components";
|
import { Button, DataTable, Input, Label } from "@common/components";
|
||||||
import { SiteApi, type Site, type SiteParams } from "@/entities/site";
|
import { SiteApi, type Site, type SiteParams } from "@/entities/site";
|
||||||
import { ENDPOINT } from "@/shared/config";
|
import { ENDPOINT } from "@/shared/config";
|
||||||
import { columns } from "../model/table-columns";
|
import { columns } from "../model/table-columns";
|
||||||
@@ -46,9 +46,9 @@ function SitePage() {
|
|||||||
<div className="card card-border !mt-6">
|
<div className="card card-border !mt-6">
|
||||||
<div className="card card-border">
|
<div className="card card-border">
|
||||||
<form onSubmit={handleSubmit} className="flex items-center gap-2 p-2">
|
<form onSubmit={handleSubmit} className="flex items-center gap-2 p-2">
|
||||||
<label htmlFor="" className="mr-2 text-label">
|
<Label htmlFor="" className="mr-2 text-label">
|
||||||
사이트명
|
사이트명
|
||||||
</label>
|
</Label>
|
||||||
<Input
|
<Input
|
||||||
className="h-[3.2rem] w-[24rem] rounded-sm !text-[1.3rem]"
|
className="h-[3.2rem] w-[24rem] rounded-sm !text-[1.3rem]"
|
||||||
value={siteQuery.siteNm}
|
value={siteQuery.siteNm}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import "./file-uploader.css";
|
|||||||
|
|
||||||
import { cn } from "../../lib/utils";
|
import { cn } from "../../lib/utils";
|
||||||
import { Input } from "../input";
|
import { Input } from "../input";
|
||||||
|
import { Label } from "../label";
|
||||||
import { combineFileName, validFileType } from "./utils";
|
import { combineFileName, validFileType } from "./utils";
|
||||||
|
|
||||||
type FileUploaderProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
type FileUploaderProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
||||||
@@ -29,9 +30,9 @@ export function FileUploader({
|
|||||||
<div className="file-uploader-preview">
|
<div className="file-uploader-preview">
|
||||||
{files?.filter(validFileType).map(combineFileName).join(", ")}
|
{files?.filter(validFileType).map(combineFileName).join(", ")}
|
||||||
</div>
|
</div>
|
||||||
<label htmlFor={id} className="file-uploader-label">
|
<Label htmlFor={id} className="file-uploader-label">
|
||||||
파일 선택
|
파일 선택
|
||||||
</label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user