Skip to content

Commit

Permalink
renamed BlockEvent to the more universally encompassing... Block
Browse files Browse the repository at this point in the history
  • Loading branch information
ejmg committed Dec 13, 2023
1 parent 07b1d85 commit 1837498
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/block/[ht]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { type FC } from "react";
import { useQuery } from "@tanstack/react-query";
import axios from "axios";
import { BlockResult } from "@/lib/validators/search";
import BlockEvent from "@/components/BlockEvent";
import Block from "@/components/Block";

interface PageProps {
params: {
Expand Down Expand Up @@ -51,7 +51,7 @@ const Page : FC<PageProps> = ({ params }) => {
{blockData ? (
<div className="flex flex-col justify-center w-full">
<h1 className="text-3xl mx-auto py-5 font-semibold">Block Summary</h1>
<BlockEvent blockPayload={blockData}/>
<Block blockPayload={blockData}/>
</div>
) : (
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface BlockEventProps {
// re-write the rendering for BlockEvent. What I'm assuming is that there's meaningful info (and lack-of) to tease out from Blocks
// and providing for that will eventually happen here; otherwise, just re-using the same component will make sense instead of mostly
// duplicate ui code that shows the exact same information.
const BlockEvent : FC<BlockEventProps> = ({ blockPayload }) => {
const Block : FC<BlockEventProps> = ({ blockPayload }) => {
const [blockEvent, penumbraTx] = blockPayload;

return (
Expand Down Expand Up @@ -67,4 +67,4 @@ const BlockEvent : FC<BlockEventProps> = ({ blockPayload }) => {
);
};

export default BlockEvent;
export default Block;

0 comments on commit 1837498

Please sign in to comment.