diff --git a/web/app/components/RecentTransactions.tsx b/web/app/components/RecentTransactions.tsx
index fd9f44f..ed0765d 100644
--- a/web/app/components/RecentTransactions.tsx
+++ b/web/app/components/RecentTransactions.tsx
@@ -5,6 +5,65 @@ import { BsTriangleFill } from 'react-icons/bs';
import SingleTransaction from './SingleTransaction'
export default function RecentTransactions() {
+ const transactions = [
+ {
+ title: "Fenny's Banglore",
+ datetime: "Today, 11:17 am",
+ amount: "3,940",
+ tag: "Tag",
+ }, {
+ title: "Sendoor",
+ datetime: "Today, 11:45 pm",
+ amount: "35",
+ tag: "Food & Drinks",
+ icon_type: "drink",
+ }, {
+ title: "Reliance Fresh",
+ datetime: "Yesterday, 5:37 pm",
+ amount: "2,399",
+ tag: "Groceries",
+ icon_type: "groceries",
+ }, {
+ title: "Chai Point",
+ datetime: "Yesterday, 12:17 pm",
+ amount: "312",
+ tag: "Food & Drinks",
+ icon_type: "food",
+ }, {
+ title: "Uber",
+ datetime: "Jan 2, 10:32 am",
+ amount: "75",
+ tag: "Transport",
+ icon_type: "transport",
+ }, {
+ title: "Swiggy",
+ datetime: "Jan 1, 11:17 pm",
+ amount: "249",
+ tag: "Food & Drinks",
+ icon_type: "swiggy",
+ }, {
+ title: "Netflix",
+ datetime: "Dec 31, 11:59 pm",
+ amount: "199",
+ tag: "Subsciption",
+ icon_type: "netflix",
+ }
+ ]
+
+ const recent_transactions = [];
+ transactions.forEach((transaction) => {
+ recent_transactions.push(
+
+ )
+ })
+
+
return (
@@ -36,13 +95,7 @@ export default function RecentTransactions() {
-
-
-
-
-
-
-
+ {recent_transactions}
)
diff --git a/web/app/components/RecurringPayment.tsx b/web/app/components/RecurringPayment.tsx
index dba4ae6..9838f52 100644
--- a/web/app/components/RecurringPayment.tsx
+++ b/web/app/components/RecurringPayment.tsx
@@ -2,17 +2,41 @@
import React from 'react'
import styles from './recurringPayment.module.css'
import { BsTriangleFill, BsYoutube, BsCalendar2Date } from 'react-icons/bs'
-import { RiHome7Fill } from 'react-icons/ri'
+import { RiHome7Fill, RiBillLine } from 'react-icons/ri'
export default function RecurringPayment(props) {
+ const renderIcon = (icon_type) => {
+ const iconSize = 50
+
+ if (icon_type == "rent") {
+ return (
+
+ )
+ } else if (icon_type == "youtube") {
+ return (
+
+ )
+ }
+ return (
+
+ )
+ }
+
+
return (
-
+ {renderIcon(props.icon_type)}
{props.title}
{
+ if (icon_type == "drink") {
+ return (
+
+ )
+ } else if (icon_type == "groceries") {
+ return (
+
+ )
+ } else if (icon_type == "food") {
+ return (
+
+ )
+ } else if (icon_type == "transport") {
+ return (
+
+ )
+ } else if (icon_type == "swiggy") {
+ return (
+
+ )
+ } else if (icon_type == "netflix") {
+ return (
+
+ )
+ }
+ }
-export default function SingleTransaction() {
return (
-
Fenny's Banglore
-
Today, 11:17 AM
+
{props.title}
+
{props.datetime}
-
₹
-
3,940
+
{props.amount}
+
+
+ {renderIcon(props.icon_type)}
+ {props.tag}
-
Tag
)
diff --git a/web/app/components/Upcoming.tsx b/web/app/components/Upcoming.tsx
index badb61d..fb4daf9 100644
--- a/web/app/components/Upcoming.tsx
+++ b/web/app/components/Upcoming.tsx
@@ -3,7 +3,6 @@ import React from 'react'
import styles from './upcoming.module.css'
import { BsTriangleFill } from 'react-icons/bs'
import RecurringPayment from './RecurringPayment'
-import { RiHome7Fill } from 'react-icons/ri'
export default function Upcoming() {
const recurringPayments = [
@@ -11,11 +10,13 @@ export default function Upcoming() {
title: "2568 Rent",
amount: "36,163",
due_in_days: "7",
+ icon_type: "rent",
},
{
title: "YouTube Premium",
amount: "130",
due_in_days: "17",
+ icon_type: "youtube",
},
]
const recurringPaymentsDiv = []
@@ -26,6 +27,7 @@ export default function Upcoming() {
title={payment.title}
amount={payment.amount}
due_in_days={payment.due_in_days}
+ icon_type={payment.icon_type}
/>
)
})
diff --git a/web/app/components/bankAccount.module.css b/web/app/components/bankAccount.module.css
index f592d07..ab94208 100644
--- a/web/app/components/bankAccount.module.css
+++ b/web/app/components/bankAccount.module.css
@@ -3,8 +3,7 @@
background: #FFF;
border-radius: 30px;
width: 47.5%;
- margin-top: 5%;
- /* max-width: 600px; */
+ margin-bottom: 5%;;
}
.bank {
diff --git a/web/app/components/singleTnx.module.css b/web/app/components/singleTnx.module.css
index b8c8819..8c9200a 100644
--- a/web/app/components/singleTnx.module.css
+++ b/web/app/components/singleTnx.module.css
@@ -30,7 +30,14 @@
color: #263D5F;
padding: 10px 12px;
font: 1.2em Sans-serif;
- font-weight: 600;
+ font-weight: 500;
+ display: flex;
+ align-items: center;
+ text-transform: uppercase;
+}
+
+.icon {
+ margin: 0 8px;
}
.tnxTitle {