Skip to content

Commit

Permalink
fix build err
Browse files Browse the repository at this point in the history
  • Loading branch information
OGreeni committed May 22, 2024
1 parent 6184024 commit 22786a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions frontend/src/app/auth/admin/forgot-password/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client';
import { FC, FormEventHandler, useEffect, useState } from 'react';
import { FC, FormEventHandler, Suspense, useEffect, useState } from 'react';
import Image from 'next/image';
import { TextInput } from '@/components/core/TextInput';
import { Button } from '@/components/core/Button';
Expand All @@ -11,7 +11,7 @@ import { cookies } from 'next/headers';

interface PageProps {}

const Page: FC<PageProps> = () => {
function Content() {
const [emailInput, setEmailInput] = useState('');
const [passwordInput, setPasswordInput] = useState('');
const [confirmPasswordInput, setConfirmPasswordInput] = useState('');
Expand Down Expand Up @@ -122,6 +122,14 @@ const Page: FC<PageProps> = () => {
</form>
</main>
);
}

const Page: FC<PageProps> = () => {
return (
<Suspense>
<Content />
</Suspense>
);
};

export default Page;

0 comments on commit 22786a4

Please sign in to comment.