Skip to content

Commit

Permalink
feat: update admin ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunyawat Naunnak committed Jun 23, 2024
1 parent 04d3b1b commit 9898189
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/app/_components/create-parcel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,12 @@ export function CreateParcel() {
<div className="grid grid-cols-2 gap-2">
<div className="grid grid-cols-4 items-center gap-4">
<Label htmlFor="desc" className="text-right">
รูปพัสดุ
หมวดหมู่
</Label>
<Input
<Group
disabled={disabled}
type="file"
{...form.register("image")}
className="col-span-3 hover:cursor-pointer"
onChange={(event) => getBase64(event.target)}
options={groups}
{...form.register("group")}
/>
</div>
<div className="grid grid-cols-4 items-center gap-4">
Expand All @@ -214,12 +212,14 @@ export function CreateParcel() {
<div className="grid grid-cols-2 gap-2">
<div className="grid grid-cols-4 items-center gap-4">
<Label htmlFor="desc" className="text-right">
หมวดหมู่
รูปพัสดุ
</Label>
<Group
<Input
disabled={disabled}
options={groups}
{...form.register("group")}
type="file"
{...form.register("image")}
className="col-span-3 hover:cursor-pointer"
onChange={(event) => getBase64(event.target)}
/>
</div>
<div className="grid grid-cols-4 items-center gap-4">
Expand Down Expand Up @@ -271,7 +271,7 @@ export function CreateParcel() {
{!close && (
<Button
type="submit"
className="bg-black text-white"
className="bg-black text-white hover:bg-grey01"
disabled={disabled}
>
{" "}
Expand Down

0 comments on commit 9898189

Please sign in to comment.