From 4b7d91256b1ba46edf92cc176eb89795c4c62df7 Mon Sep 17 00:00:00 2001 From: Prakhargarg-2010196 <23prakhargarg2002@gmail.com> Date: Wed, 30 Oct 2024 02:07:21 +0530 Subject: [PATCH] fix(platform):Remove unnecessary types imports --- apps/platform/src/app/auth/otp/page.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/platform/src/app/auth/otp/page.tsx b/apps/platform/src/app/auth/otp/page.tsx index cfd94075..a9f3a35d 100644 --- a/apps/platform/src/app/auth/otp/page.tsx +++ b/apps/platform/src/app/auth/otp/page.tsx @@ -8,8 +8,6 @@ import Cookies from 'js-cookie' import { toast } from 'sonner' import { LoadingSVG } from '@public/svg/shared' import { KeyshadeBigSVG } from '@public/svg/auth' -import type { ClientResponse } from '@keyshade/api-client/dist/src/types/index.types' -import type { ResendOTPRequest } from '@keyshade/api-client/dist/src/types/auth.types' import { GeistSansFont } from '@/fonts' import { Button } from '@/components/ui/button' import { @@ -99,9 +97,9 @@ export default function AuthOTPPage(): React.JSX.Element { // ControllerInstance.initialize('http://localhost:4200') const { error, success } = - (await ControllerInstance.getInstance().authController.resendOTP({ + await ControllerInstance.getInstance().authController.resendOTP({ userEmail: encodeURIComponent(userEmail) - })) as ClientResponse + }) if (success) { toast.success('OTP successfully sent to your email') setIsLoadingRefresh(false)