Skip to content

Commit

Permalink
added Group messages
Browse files Browse the repository at this point in the history
  • Loading branch information
izuchukwu-eric committed Sep 25, 2023
1 parent ee096dd commit cdd9529
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pages/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ function Dashboard() {
const [data, setData] = useState<string[]>([]);
const [referralCodesData, setReferralCodesData] = useState<string[]>([]);
const { address: wagmiAddress } = useAccount();
const messageSent =
connectedWalletData?.MessagesTx + connectedWalletData?.GroupMessages;

// pagination setup
const resultsPerPage = 10;
Expand Down Expand Up @@ -107,10 +109,7 @@ function Dashboard() {
{/* <!-- Cards --> */}
<div className="lg:flex lg:justify-between">
<div className="grid w-full gap-6 md:grid-cols-2 xl:grid-cols-2">
<InfoCard
title="Message Sent"
value={connectedWalletData?.MessagesTx}
>
<InfoCard title="Message Sent" value={messageSent}>
{/* @ts-ignore */}
<RoundIcon
icon={PeopleIcon}
Expand Down

0 comments on commit cdd9529

Please sign in to comment.