Skip to content

Commit

Permalink
feat: use searchParams in page.tsx so it renders dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteAtATime committed Dec 13, 2024
1 parent 457c70f commit d96f563
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/nextjs/app/view/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

import { useEffect, useState } from "react";
import { useRouter, useSearchParams } from "next/navigation";
import { NextPage } from "next";
import { TypedDataDefinition } from "viem";
import { SignatureMessage } from "~~/components/signatorio/SignatureMessage";
import { SignaturesList } from "~~/components/signatorio/SignaturesList";
import { useSignatureVerification } from "~~/hooks/signatorio/useSignatureVerification";
import { useTypedDataHighlight } from "~~/hooks/signatorio/useTypedDataHighlight";

const ViewSignature: React.FC = () => {
const ViewSignature: NextPage<{
searchParams: { [key: string]: string | string[] | undefined };
}> = ({ searchParams: _ }) => {
const searchParams = useSearchParams();
const router = useRouter();

Expand Down

0 comments on commit d96f563

Please sign in to comment.