From 3bbdba70151f1247008e4a8bef9eed726bb64b24 Mon Sep 17 00:00:00 2001 From: Hafid Nur Date: Mon, 31 Mar 2025 01:13:21 +0700 Subject: [PATCH] fix: add type=file on Input & InputForm components Juga fix script untuk serve backoffice --- libs/ui/src/atoms/input/input.tsx | 2 +- libs/ui/src/molecules/input-form/input-form.tsx | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ui/src/atoms/input/input.tsx b/libs/ui/src/atoms/input/input.tsx index 72f8575..ae0e849 100644 --- a/libs/ui/src/atoms/input/input.tsx +++ b/libs/ui/src/atoms/input/input.tsx @@ -9,7 +9,7 @@ import { EyeInvisibleOutlined, EyeOutlined } from '@ant-design/icons'; // Import import { cn } from '@imphnen-frontend-service/utils'; import { Button } from '../button'; -type TInputType = 'text' | 'email' | 'password'; +type TInputType = 'text' | 'email' | 'password' | 'file'; type TInputSize = 'sm' | 'md' | 'lg'; type TInputProps = Omit< diff --git a/libs/ui/src/molecules/input-form/input-form.tsx b/libs/ui/src/molecules/input-form/input-form.tsx index 1af658d..7e5c8d3 100644 --- a/libs/ui/src/molecules/input-form/input-form.tsx +++ b/libs/ui/src/molecules/input-form/input-form.tsx @@ -7,7 +7,7 @@ import { import { Input } from '../../atoms'; import { cn } from '@imphnen-frontend-service/utils'; -type TInputType = 'text' | 'email' | 'password'; +type TInputType = 'text' | 'email' | 'password' | 'file'; type TInputSize = 'sm' | 'md' | 'lg'; type TInputFormProps = Omit< diff --git a/package.json b/package.json index 4a3cf8a..3c7f58b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "gacha:prod": "serve ./dist/apps/gacha", "backoffice:dev": "nx serve backoffice", "backoffice:build": "nx build backoffice", - "backoffice:prod": "serve ./dist/apps/gacha", + "backoffice:prod": "serve ./dist/apps/backoffice", "dimentorin:dev": "nx serve dimentorin", "dimentorin:build": "nx build dimentorin", "dimentorin:prod": "serve ./dist/apps/dimentorin",