Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
feat: improved empty state
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jun 28, 2024
1 parent f657315 commit f0c70c8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions frontend/src/components/TransactionsList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import dayjs from "dayjs";
import { ArrowDownIcon, ArrowUpIcon } from "lucide-react";
import { ArrowDownIcon, ArrowUpIcon, Drum } from "lucide-react";
import EmptyState from "src/components/EmptyState";

import Loading from "src/components/Loading";
import { useTransactions } from "src/hooks/useTransactions";
Expand All @@ -14,10 +15,13 @@ function TransactionsList() {
return (
<div>
{!transactions?.length ? (
<p className="text-center py-16 text-gray-500 dark:text-neutral-400">
No transactions, yet.
{/* Deposit Bitcoin Button */}
</p>
<EmptyState
icon={Drum}
title="No transactions yet"
description="Your most recent incoming and outgoing payments will show up here."
buttonText="Receive Your First Payment"
buttonLink="/wallet/receive"
/>
) : (
<>
{transactions?.map((tx, i) => {
Expand Down

0 comments on commit f0c70c8

Please sign in to comment.