-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
47 lines (44 loc) · 1.51 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import React from 'react';
import { Wallet } from 'lucide-react';
import { TransactionForm } from './components/TransactionForm';
import { TransactionList } from './components/TransactionList';
import { Dashboard } from './components/Dashboard';
import { WalletSelector } from './components/WalletSelector';
import { ErrorBoundary } from './components/ErrorBoundary';
function App() {
return (
<ErrorBoundary>
<div className="min-h-screen bg-gray-100">
<nav className="bg-white shadow-sm">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between h-16">
<div className="flex items-center">
<Wallet className="w-8 h-8 text-blue-600" />
<span className="ml-2 text-xl font-semibold text-gray-900">
Smart Finance Tracker
</span>
</div>
<div className="flex items-center">
<WalletSelector />
</div>
</div>
</div>
</nav>
<main className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div className="grid grid-cols-1 lg:grid-cols-3 gap-8">
<div className="lg:col-span-2">
<Dashboard />
<div className="mt-8">
<TransactionList />
</div>
</div>
<div>
<TransactionForm />
</div>
</div>
</main>
</div>
</ErrorBoundary>
);
}
export default App;