From 5d2762019ce568fbf5f033bee0bf6b0894607554 Mon Sep 17 00:00:00 2001 From: rave-roses Date: Wed, 16 Apr 2025 21:40:25 +0100 Subject: [PATCH] modal done --- package-lock.json | 6 ---- src/App.tsx | 3 +- src/components/ModalViewExpense.tsx | 50 +++++++++++++++++++++++++++++ src/pages/LandingPage.tsx | 2 +- 4 files changed, 53 insertions(+), 8 deletions(-) create mode 100644 src/components/ModalViewExpense.tsx diff --git a/package-lock.json b/package-lock.json index a82f5ab..f8e669b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -831,7 +831,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2412,7 +2411,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4739,7 +4737,6 @@ "version": "3.3.11", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", - "dev": true, "funding": [ { "type": "github", @@ -4873,7 +4870,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, "license": "ISC" }, "node_modules/picomatch": { @@ -4893,7 +4889,6 @@ "version": "8.5.3", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz", "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==", - "dev": true, "funding": [ { "type": "opencollective", @@ -5343,7 +5338,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" diff --git a/src/App.tsx b/src/App.tsx index 569384d..15e5eb8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -8,6 +8,7 @@ import ExpensesOverview from "./pages/dashboard/expenses/Expenses"; import NewExpense from "./pages/dashboard/expenses/New"; import LandingPage from "./pages/LandingPage"; import Overview from "./pages/dashboard/Overview"; +import ModalViewExpense from "./components/ModalViewExpense"; function App() { return ( @@ -15,7 +16,7 @@ function App() { } /> } /> } /> - + } /> {/* Dashboard routes */} }> } /> diff --git a/src/components/ModalViewExpense.tsx b/src/components/ModalViewExpense.tsx new file mode 100644 index 0000000..01ffda8 --- /dev/null +++ b/src/components/ModalViewExpense.tsx @@ -0,0 +1,50 @@ +import { MdOutlineCancel } from "react-icons/md"; +const ModalViewExpense = () => { + return ( +
+
+
+

Dinner at Olive Garden

+

+ Today at 8:30 PM • Food & Drink +

+
+ + +
+ +
+
+
+
+

+ Alexander johnson +

+

+ Paid $5000 +

+
+
+
+

Group

+

Dinner Club

+
+
+
+

Split Details

+
+

You

+

amount

+
+
+
+

Notes

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Saepe minus +

+
+
+ ); +}; + +export default ModalViewExpense; diff --git a/src/pages/LandingPage.tsx b/src/pages/LandingPage.tsx index 2c9ffef..1f21da9 100644 --- a/src/pages/LandingPage.tsx +++ b/src/pages/LandingPage.tsx @@ -72,7 +72,7 @@ export default function LandingPage() {