From 9c7b8c1c63add476a7e3f0178c5793abcd569861 Mon Sep 17 00:00:00 2001 From: Maulana Sodiqin <53475078+maulanasdqn@users.noreply.github.com> Date: Thu, 3 Apr 2025 12:27:22 +0700 Subject: [PATCH 1/2] chore: kesalahan pemula --- .gitignore | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 77912e8..ae360d6 100644 --- a/.gitignore +++ b/.gitignore @@ -44,4 +44,10 @@ Thumbs.db vite.config.*.timestamp* vitest.config.*.timestamp* -storybook-static \ No newline at end of file +storybook-static + + +.env +.env.prod +.env.develop +.env.staging From f8f796e07153fbb91f3b3e5dd50d6ea04f7eea71 Mon Sep 17 00:00:00 2001 From: Maulana Sodiqin Date: Thu, 3 Apr 2025 12:31:16 +0700 Subject: [PATCH 2/2] chore: fix global error build --- .../_components/modal-edit-account.tsx | 10 +-- .../dashboard/_components/modal-add-item.tsx | 8 +-- .../dashboard/_components/modal-edit-item.tsx | 8 +-- apps/backoffice/src/app/page.tsx | 6 +- .../prizes/_components/modal-process-item.tsx | 10 +-- .../_components/modal-validate.tsx | 4 +- apps/dimentorin/src/app/auth/login/page.tsx | 68 +++++++++++++------ .../input-field/input-field.spec.tsx | 2 +- 8 files changed, 72 insertions(+), 44 deletions(-) diff --git a/apps/backoffice/src/app/accounts/_components/modal-edit-account.tsx b/apps/backoffice/src/app/accounts/_components/modal-edit-account.tsx index adb382a..c7623bf 100644 --- a/apps/backoffice/src/app/accounts/_components/modal-edit-account.tsx +++ b/apps/backoffice/src/app/accounts/_components/modal-edit-account.tsx @@ -1,5 +1,5 @@ import { Button } from '@imphnen-frontend-service/ui/atoms'; -import { InputForm, Modal } from '@imphnen-frontend-service/ui/molecules'; +import { InputField, Modal } from '@imphnen-frontend-service/ui/molecules'; import { useState } from 'react'; interface IModalEditAccount { @@ -63,7 +63,7 @@ const StepOne = ({ nextStep }: IStepOneProps) => {
- { size="lg" className="w-full" /> - { size="lg" className="w-full" /> - { size="lg" className="w-full" /> - (
- - - (
- - - { const navigate = useNavigate(); @@ -13,14 +13,14 @@ export const Components: FC = (): ReactElement => {

Welcome to IMPHNEN Backoffice

- -
- - - - - { const [searchParams] = useSearchParams(); - const error = searchParams.get("error"); // Ambil nilai ?error= + const error = searchParams.get('error'); // Ambil nilai ?error= return ( -
-
+
+
-
-
-

Hallo Minna-san

-
Welcome to Dimentorin by IMPHNEN
- - -
- Lupa Password ? +
+
+

+ Hallo Minna-san +

+
+ Welcome to Dimentorin by IMPHNEN +
+ + + - -
+ +
Belum Punya akun ?
- Daftar Disini + + Daftar Disini +
Or
- -
+
); }; -export default Components; \ No newline at end of file +export default Components; diff --git a/libs/ui/src/molecules/input-field/input-field.spec.tsx b/libs/ui/src/molecules/input-field/input-field.spec.tsx index 7ed60dc..948c77b 100644 --- a/libs/ui/src/molecules/input-field/input-field.spec.tsx +++ b/libs/ui/src/molecules/input-field/input-field.spec.tsx @@ -1,7 +1,7 @@ import { render, screen } from '@testing-library/react'; import { InputField } from './input-field'; -describe('InputForm Component', () => { +describe('InputField Component', () => { it('renders correctly with disabled prop', () => { render();