From e596400253a09bb0acfae4a6d48f22581bd50e06 Mon Sep 17 00:00:00 2001 From: ejmg Date: Wed, 14 Aug 2024 22:50:14 -0500 Subject: [PATCH] removed ibc/page. updated ibc pages and components to use new stylings. --- .../src/app/(main)/ibc/channel/[id]/page.tsx | 9 ++++-- apps/web/src/app/(main)/ibc/channels/page.tsx | 6 ++-- .../src/app/(main)/ibc/client/[id]/page.tsx | 8 ++++-- apps/web/src/app/(main)/ibc/clients/page.tsx | 6 ++-- .../app/(main)/ibc/connection/[id]/page.tsx | 8 ++++-- apps/web/src/app/(main)/ibc/page.tsx | 28 ------------------- apps/web/src/components/ibc/Channel/index.tsx | 2 +- apps/web/src/components/ibc/Client/index.tsx | 2 +- .../src/components/ibc/Connection/index.tsx | 2 +- 9 files changed, 27 insertions(+), 44 deletions(-) delete mode 100644 apps/web/src/app/(main)/ibc/page.tsx diff --git a/apps/web/src/app/(main)/ibc/channel/[id]/page.tsx b/apps/web/src/app/(main)/ibc/channel/[id]/page.tsx index a8286ee..2c9389a 100644 --- a/apps/web/src/app/(main)/ibc/channel/[id]/page.tsx +++ b/apps/web/src/app/(main)/ibc/channel/[id]/page.tsx @@ -26,10 +26,13 @@ const Page : FC = ({ params }) => { }); return ( -
-

IBC Channel

+
+
+

IBC Channel

+
-
+ {/* TODO: don't forget to remove this extra pb-8 once Channel is cleaned up. */} +
diff --git a/apps/web/src/app/(main)/ibc/channels/page.tsx b/apps/web/src/app/(main)/ibc/channels/page.tsx index ee03266..17655a6 100644 --- a/apps/web/src/app/(main)/ibc/channels/page.tsx +++ b/apps/web/src/app/(main)/ibc/channels/page.tsx @@ -25,8 +25,10 @@ const Page = () => { }); return ( -
-

IBC Channels

+
+
+

IBC Channels

+
= ({ params }) => { }); return ( -
-

IBC Client

+
+
+

IBC Client

+
-
+
diff --git a/apps/web/src/app/(main)/ibc/clients/page.tsx b/apps/web/src/app/(main)/ibc/clients/page.tsx index cec13b5..a4d3900 100644 --- a/apps/web/src/app/(main)/ibc/clients/page.tsx +++ b/apps/web/src/app/(main)/ibc/clients/page.tsx @@ -25,8 +25,10 @@ const Page = () => { }); return ( -
-

IBC Clients

+
+
+

IBC Clients

+
= ({ params }) => { }); return ( -
-

IBC Connection

+
+
+

IBC Connection

+
-
+
diff --git a/apps/web/src/app/(main)/ibc/page.tsx b/apps/web/src/app/(main)/ibc/page.tsx deleted file mode 100644 index a3be9ee..0000000 --- a/apps/web/src/app/(main)/ibc/page.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import Link from "next/link"; - -const Page = () => { - return ( -
-

Available IBC data to explore

-
-

- - IBC Clients - -

-

- - IBC Channels - -

-

- - IBC Connections - -

-
-
- ); -}; - -export default Page; diff --git a/apps/web/src/components/ibc/Channel/index.tsx b/apps/web/src/components/ibc/Channel/index.tsx index fd0056e..e823555 100644 --- a/apps/web/src/components/ibc/Channel/index.tsx +++ b/apps/web/src/components/ibc/Channel/index.tsx @@ -22,7 +22,7 @@ export const Channel : FC = ({ endpoint, queryName, channelId }) = }); return ( -
+

Channel ID

{channelId}
diff --git a/apps/web/src/components/ibc/Client/index.tsx b/apps/web/src/components/ibc/Client/index.tsx index 383d617..41dd1f2 100644 --- a/apps/web/src/components/ibc/Client/index.tsx +++ b/apps/web/src/components/ibc/Client/index.tsx @@ -34,7 +34,7 @@ export const Client : FC = ({ endpoint, queryName, clientId }) => { // const header = events.find(({ key }) => key === "header")?.value ?? "NONE"; return ( -
+

Client ID

{client_id}
diff --git a/apps/web/src/components/ibc/Connection/index.tsx b/apps/web/src/components/ibc/Connection/index.tsx index 2b53aff..7089c20 100644 --- a/apps/web/src/components/ibc/Connection/index.tsx +++ b/apps/web/src/components/ibc/Connection/index.tsx @@ -27,7 +27,7 @@ export const Connection : FC = ({ endpoint, queryName, connecti const { connection_id, client_id, channel_ids } = data.at(0) ?? { connection_id: "", client_id: "", channel_ids: [] }; return ( -
+

Connection ID

{connection_id}