From cacfd726fa3fe59f27809e9be7dca6d61ffa2536 Mon Sep 17 00:00:00 2001
From: Kim0426 <706shin1728@naver.com>
Date: Mon, 6 Nov 2023 14:07:37 +0900
Subject: [PATCH] =?UTF-8?q?refactor:=20zod=20=EC=A0=9C=EA=B1=B0,=EC=9C=A0?=
=?UTF-8?q?=ED=9A=A8=EC=84=B1=20=EA=B2=80=EC=82=AC=20=EB=B6=80=EB=B6=84=20?=
=?UTF-8?q?=EC=A0=9C=EA=B1=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package-lock.json | 11 +----------
package.json | 3 +--
src/pages/LoginPage/components/ErrorAlert.tsx | 12 ------------
src/pages/LoginPage/components/LoginGroup.tsx | 6 ------
src/pages/LoginPage/components/index.ts | 1 -
5 files changed, 2 insertions(+), 31 deletions(-)
delete mode 100644 src/pages/LoginPage/components/ErrorAlert.tsx
diff --git a/package-lock.json b/package-lock.json
index 8a3d2ba6..93e866e1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,8 +19,7 @@
"react-dom": "^18.2.0",
"react-hook-form": "^7.47.0",
"react-router-dom": "^6.17.0",
- "rippleui": "^1.12.1",
- "zod": "^3.22.4"
+ "rippleui": "^1.12.1"
},
"devDependencies": {
"@commitlint/cli": "^18.0.0",
@@ -9250,14 +9249,6 @@
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
- },
- "node_modules/zod": {
- "version": "3.22.4",
- "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz",
- "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==",
- "funding": {
- "url": "https://github.com/sponsors/colinhacks"
- }
}
}
}
diff --git a/package.json b/package.json
index 595ad058..30a87475 100644
--- a/package.json
+++ b/package.json
@@ -21,8 +21,7 @@
"react-dom": "^18.2.0",
"react-hook-form": "^7.47.0",
"react-router-dom": "^6.17.0",
- "rippleui": "^1.12.1",
- "zod": "^3.22.4"
+ "rippleui": "^1.12.1"
},
"devDependencies": {
"@commitlint/cli": "^18.0.0",
diff --git a/src/pages/LoginPage/components/ErrorAlert.tsx b/src/pages/LoginPage/components/ErrorAlert.tsx
deleted file mode 100644
index 2c5c271b..00000000
--- a/src/pages/LoginPage/components/ErrorAlert.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-interface ErrorAlertProps {
- errortext: string
-}
-
-const ErrorAlert = ({ errortext }: ErrorAlertProps) => {
- return (
-
- {errortext}
-
- )
-}
-export default ErrorAlert
diff --git a/src/pages/LoginPage/components/LoginGroup.tsx b/src/pages/LoginPage/components/LoginGroup.tsx
index 07070857..f0bcddec 100644
--- a/src/pages/LoginPage/components/LoginGroup.tsx
+++ b/src/pages/LoginPage/components/LoginGroup.tsx
@@ -3,7 +3,6 @@ import { zodResolver } from '@hookform/resolvers/zod'
import { useState } from 'react'
import { useForm } from 'react-hook-form'
import { EyeOnIcon, EyeOffIcon } from '@/assets/icons'
-import { ErrorAlert } from '@/pages/LoginPage/components'
import { PATH } from '@/routes/constants'
import { loginSchema } from './constant'
@@ -41,7 +40,6 @@ const LoginGroup = ({ handleLogin }: LoginGroupProps) => {
placeholder="email"
/>
- {errors.email &&