diff --git a/web/app/components/RootSection.tsx b/web/app/components/RootSection.tsx index 316e9cc..9a8ebc1 100644 --- a/web/app/components/RootSection.tsx +++ b/web/app/components/RootSection.tsx @@ -1,7 +1,7 @@ import { Section } from "napi-pallas"; import { EraType, IUiConfigs } from "~/interfaces"; import { ExampleCard } from "~/routes/tx"; -import { exampleCbor, getTopicMeta } from "~/utils"; +import { getTopicMeta } from "~/utils"; import { HexBlock, PropBlock, TopicMeta } from "./constructors"; import { DataSection, ValidationInformation } from "./index"; @@ -25,7 +25,7 @@ export function RootSection(props: {

Or try this example:

- +
); diff --git a/web/app/routes/tx.tsx b/web/app/routes/tx.tsx index 6e9b9a8..1e244f3 100644 --- a/web/app/routes/tx.tsx +++ b/web/app/routes/tx.tsx @@ -17,7 +17,6 @@ import { BabbageValidations, exampleCbor, formDataToContext, - initialProtPps, logCuriosity, paramsParser, } from "~/utils"; @@ -62,19 +61,30 @@ export async function loader() { } } -export function ExampleCard(props: { title: string; address: string }) { +export function ExampleCard() { + const { context } = useContext(ValidationsContext); return (
@@ -183,7 +193,7 @@ export default function Index() { Or try one of these examples...
- +
)}