From d6980f922c6fb813b5880ad9b332e9626f99cb4d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 20 Nov 2024 17:50:45 +0100 Subject: [PATCH] feat(LatestProposalsTable): add message for no proposals found --- src/app/proposals/LatestProposalsTable.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/proposals/LatestProposalsTable.tsx b/src/app/proposals/LatestProposalsTable.tsx index 65faeb82..fc59d019 100644 --- a/src/app/proposals/LatestProposalsTable.tsx +++ b/src/app/proposals/LatestProposalsTable.tsx @@ -2,7 +2,7 @@ import { useFetchAllProposals } from '@/app/proposals/hooks/useFetchLatestPropos import { EventArgumentsParameter, getEventArguments } from '@/app/proposals/shared/utils' import { StatusColumn } from '@/app/proposals/StatusColumn' import { Table } from '@/components/Table' -import { HeaderTitle } from '@/components/Typography' +import { HeaderTitle, Typography } from '@/components/Typography' import { SharedProposalsTableContextProvider } from '@/app/proposals/SharedProposalsTableContext' import { ProposalsContextProvider } from '@/app/proposals/ProposalsContext' import { SentimentColumn } from '@/app/proposals/SentimentColumn' @@ -64,7 +64,7 @@ const LatestProposalsTable = ({ latestProposals }: LatestProposalsTableProps) =>
Latest Proposals - {latestProposalsMapped.length > 0 && ( + {latestProposalsMapped.length > 0 ? ( className="overflow-visible" /> + ) : ( + No proposals found 😢 )} )