Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions apps/web/ui/network-widgets/widgets/ibc-transfert-event-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
ChevronDoubleDown,
Clock,
CornerUpRight,
FancyCheck,
LinkOut,
} from "~/ui/icons";
import { ClientTime } from "~/ui/client-time";
Expand All @@ -20,7 +19,6 @@ import { jsonFetch } from "~/lib/shared-utils";
import * as HoverCard from "@radix-ui/react-hover-card";
import { Tooltip } from "~/ui/tooltip";
import { useNetworkStatus } from "~/ui/search/use-network-status";
import { useSearchOptionsContext } from "~/ui/search-options-context";

export type IBCTransferEventCardProps = {
event: IBCTransferEvent;
Expand Down Expand Up @@ -104,20 +102,6 @@ export function IBCTransferEventCard({
const targetChainHealthStatus =
targetNetworkStatus?.[event.to.chainSlug]?.healthy ?? null;

const allNetworkChains = useSearchOptionsContext();

const values = allNetworkChains.flat();
const foundNetworks = values.filter(
(network) =>
network.slug === event.from.chainSlug ||
network.slug === event.to.chainSlug,
);

const fromChain = foundNetworks.find(
(net) => net.slug === event.from.chainSlug,
);
const toChain = foundNetworks.find((net) => net.slug === event.to.chainSlug);

return (
<Card className="p-0 grid w-full shadow-none">
<div className="p-5 rounded-t-lg flex items-start justify-between">
Expand Down Expand Up @@ -276,19 +260,6 @@ export function IBCTransferEventCard({
{event.from.chainName}
</p>

{fromChain?.verified && (
<span
style={{
"--color-primary": fromChain.brandColor,
}}
>
<FancyCheck
className="text-primary h-5 w-5 flex-none"
aria-hidden="true"
/>
</span>
)}

<div
className={cn(
"opacity-100 relative flex items-center justify-center",
Expand Down Expand Up @@ -379,19 +350,6 @@ export function IBCTransferEventCard({
{event.to.chainName}
</p>

{toChain?.verified && (
<span
style={{
"--color-primary": toChain.brandColor,
}}
>
<FancyCheck
className="text-primary h-5 w-5 flex-none"
aria-hidden="true"
/>
</span>
)}

<div
className={cn(
"opacity-100 relative flex items-center justify-center",
Expand Down