diff --git a/apps/gacha/src/app/_components/form/modal-form-login.tsx b/apps/gacha/src/app/_components/form/modal-form-login.tsx
index 3b2c6e8..e81ee8b 100644
--- a/apps/gacha/src/app/_components/form/modal-form-login.tsx
+++ b/apps/gacha/src/app/_components/form/modal-form-login.tsx
@@ -2,6 +2,7 @@ import { Button } from '@imphnen-frontend-service/ui/atoms';
import { Modal } from '@imphnen-frontend-service/ui/molecules';
import { ControlledInputField } from '@imphnen-frontend-service/ui/organisms';
import { useLogin } from '../../_hooks/use-login';
+import ModalFormVerifyEmail from './modal-form-verify-email';
interface IModalFormLogin {
isOpen: boolean;
@@ -16,61 +17,87 @@ const ModalFormLogin = ({
onForgotPassword,
setIsOpenRegisterModal,
}: IModalFormLogin) => {
- const { form, onSubmit } = useLogin();
+ const {
+ form,
+ onSubmit,
+ isLoading,
+ showVerifyModal,
+ verifyForm,
+ onVerifySubmit,
+ closeVerifyModal,
+ isVerifying,
+ emailToVerify,
+ } = useLogin();
return (
-
-
- Login
-
-
Belum punya akun?
+ +
+ Reset password akunmu +
+ ++ Ubah passwordmu +
+ ++ Masuk untuk mengakses akunmu +
++ Belum punya akun?{' '} + + Daftar + +
++ Buat akunmu sekarang +
++ Sudah punya akun?{' '} + + Masuk + +
++ Verifikasi akun mu sekarang +
+- {subtitle} -
- -- Bergabunglah dengan ribuan programmer Indonesia yang saling membantu - dan berbagi pengalaman. -
-{c.description}
- -- {subheading} -
-{feature.description}
-- {description} -
-{r.description}
- - -- {featured.description} -
-- {subtitle} -
-- “{t.quote}” -
-{t.role}
-{joinText}
-+ Terhubung dengan sesama developer di komunitas kami +
+Programmer Sudah Bergabung
+@@ -81,34 +71,30 @@ export function Hero(props: HeroSection) {
{testimonial.role}
+{testimonial.text}
++ {sortedEvents[0].description} +
+ + Lihat Detail + ++ {event.description} +
+ + Lihat Detail + ++ Menampilkan pengalaman dan cerita para member yang telah join ke dalam + komunitas kami +
+ +{testimonial.role}
+{testimonial.text}
++ {body} +
+ ); +} + +export { + Form, + FormControl, + FormDescription, + FormField, + FormItem, + FormLabel, + FormMessage, + useFormField, +}; diff --git a/libs/shadcn-ui/src/atoms/index.ts b/libs/shadcn-ui/src/atoms/index.ts index e54f955..82b2d15 100644 --- a/libs/shadcn-ui/src/atoms/index.ts +++ b/libs/shadcn-ui/src/atoms/index.ts @@ -1,2 +1,6 @@ export * from './button'; +export * from './card'; +export * from './form'; export * from './icons'; +export * from './input'; +export * from './label'; diff --git a/libs/shadcn-ui/src/atoms/input.tsx b/libs/shadcn-ui/src/atoms/input.tsx new file mode 100644 index 0000000..a5b26ee --- /dev/null +++ b/libs/shadcn-ui/src/atoms/input.tsx @@ -0,0 +1,23 @@ +'use client'; + +import * as React from 'react'; +import { cn } from '../lib'; + +const Input = React.forwardRef