From 72c9bb66463371834a1a79dec0400a042e7a2605 Mon Sep 17 00:00:00 2001 From: Amogh-Bharadwaj Date: Mon, 4 Mar 2024 22:22:32 +0530 Subject: [PATCH] fixes --- ui/app/mirrors/create/mirrorcards.tsx | 11 +++++--- ui/app/page.tsx | 2 +- ui/app/peers/[peerName]/page.tsx | 9 ++++++- ui/app/peers/create/[peerType]/page.tsx | 20 +++++++------- ui/app/peers/create/page.tsx | 35 +++++++++++++++++-------- ui/components/ReloadButton.tsx | 2 +- 6 files changed, 51 insertions(+), 28 deletions(-) diff --git a/ui/app/mirrors/create/mirrorcards.tsx b/ui/app/mirrors/create/mirrorcards.tsx index 31466cf9ee..6cf2dcd348 100644 --- a/ui/app/mirrors/create/mirrorcards.tsx +++ b/ui/app/mirrors/create/mirrorcards.tsx @@ -70,14 +70,17 @@ const MirrorCards = ({
{card.description}
- + ); })} diff --git a/ui/app/page.tsx b/ui/app/page.tsx index 4e84221bb7..83a0f1ccd6 100644 --- a/ui/app/page.tsx +++ b/ui/app/page.tsx @@ -5,7 +5,7 @@ import { Layout, LayoutMain } from '@/lib/Layout'; export default function Home() { return ( }> - +
PeerDB Home Page
diff --git a/ui/app/peers/[peerName]/page.tsx b/ui/app/peers/[peerName]/page.tsx index 364c425dca..fadb1731d4 100644 --- a/ui/app/peers/[peerName]/page.tsx +++ b/ui/app/peers/[peerName]/page.tsx @@ -57,7 +57,14 @@ const PeerData = async ({ params: { peerName } }: DataConfigProps) => { const stats = await getStatData(); return ( -
+
- - {configComponentMap(dbType)} - - + @@ -50,7 +63,7 @@ export default function CreatePeer() { - - +
+
); } diff --git a/ui/components/ReloadButton.tsx b/ui/components/ReloadButton.tsx index 8c2f2e46e8..d844cd1f1e 100644 --- a/ui/components/ReloadButton.tsx +++ b/ui/components/ReloadButton.tsx @@ -2,7 +2,7 @@ import { Button } from '@/lib/Button'; import { Icon } from '@/lib/Icon'; -const ReloadButton = ({ reloadFunction }: { reloadFunction: () => void }) => { +const ReloadButton = () => { return (