feat: refactor components to use named exports for better consistency

This commit is contained in:
fredy.siswanto
2025-02-23 20:41:19 +07:00
parent 4fa3873dda
commit 7b42f6bfe5
6 changed files with 8 additions and 12 deletions
+2 -2
View File
@@ -2,9 +2,9 @@ import { type PropsWithChildren } from 'react'
import { PopupModal } from '~/components/popup/modal'
import { SuccessModal } from '~/components/popup/success-modal'
import Banner from '~/components/ui/banner'
import { Banner } from '~/components/ui/banner'
import { useNewsContext } from '~/contexts/news'
import FormForgotPassword from '~/layouts/news/form-forgot-password'
import { FormForgotPassword } from '~/layouts/news/form-forgot-password'
import { FormLogin } from '~/layouts/news/form-login'
import { FormRegister } from '~/layouts/news/form-register'
+1 -1
View File
@@ -1,6 +1,6 @@
import { Button } from '~/components/ui/button'
export default function FormForgotPassword() {
export const FormForgotPassword = () => {
return (
<div className="flex flex-col items-center justify-center">
<div className="w-full max-w-md">