Skip to content

Commit

Permalink
Add toaster and remove backdrop
Browse files Browse the repository at this point in the history
  • Loading branch information
Pabl0cks committed Jan 10, 2025
1 parent a483e3a commit 3bc5d21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions packages/nextjs/app/apply/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { useConnectModal } from "@rainbow-me/rainbowkit";
import { useMutation } from "@tanstack/react-query";
import type { NextPage } from "next";
import { FormProvider } from "react-hook-form";
import { Toaster } from "react-hot-toast";
import { useAccount } from "wagmi";
import { Button } from "~~/components/pg-ens/Button";
import { FormInput } from "~~/components/pg-ens/form-fields/FormInput";
Expand Down Expand Up @@ -87,9 +88,7 @@ const Apply: NextPage = () => {
</div>
</div>
</div>
<form method="dialog" className="modal-backdrop">
<button onClick={handleModalClose}>close</button>
</form>
<Toaster />
</dialog>

<FormProvider {...formMethods}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const NewStageModal = forwardRef<HTMLDialogElement, NewStageModalProps>(
</form>
</FormProvider>
</div>
<Toaster />
</dialog>

<dialog ref={feedbackModalRef} className="modal">
Expand All @@ -111,11 +112,8 @@ export const NewStageModal = forwardRef<HTMLDialogElement, NewStageModalProps>(
</div>
</div>
</div>
<form method="dialog" className="modal-backdrop">
<button onClick={handleFeedbackModalClose}>close</button>
</form>
<Toaster />
</dialog>
<Toaster />
</>
);
},
Expand Down

0 comments on commit 3bc5d21

Please sign in to comment.