Skip to content

Commit

Permalink
fix(platform):Remove unnecessary types imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Prakhargarg-2010196 authored and rajdip-b committed Oct 30, 2024
1 parent 61c25dd commit 4b7d912
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/platform/src/app/auth/otp/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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<ResendOTPRequest>
})
if (success) {
toast.success('OTP successfully sent to your email')
setIsLoadingRefresh(false)
Expand Down

0 comments on commit 4b7d912

Please sign in to comment.