Skip to content

Commit 3f8c28e

Browse files
committed
feat: add calendar btn
1 parent 2cfaf84 commit 3f8c28e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/pages/Overview.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { WalletMoney, MoneySend, UsdCoin } from 'iconsax-react'
33
import TotalBox from '../components/TotalBox'
44
import Chart from '../components/Chart'
55

6-
import { More } from 'iconsax-react'
6+
import { More, Calendar } from 'iconsax-react'
77

88
import styles from './Overview.module.css'
99

@@ -49,8 +49,9 @@ export default function Overview() {
4949
<span className="red-dot" style={{ marginLeft: "20px" }}></span> Total Spending
5050
</h5>
5151
</div>
52-
<button> {/* // todo: add date picker */}
52+
<button className={styles["calendar-btn"]}> {/* // todo: add date picker */}
5353
Last 6 month
54+
<Calendar size="30" color="#000" />
5455
</button>
5556
</div>
5657

src/pages/Overview.module.css

+12
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,16 @@
143143
}
144144
.total-income-percent-item span {
145145
font-weight: bolder;
146+
}
147+
.calendar-btn {
148+
background-color: transparent;
149+
outline: none;
150+
border: 2px solid #dbdbdb;
151+
display: flex;
152+
align-items: center;
153+
font-size: 1.1rem;
154+
column-gap: 10px;
155+
padding: 10px 20px;
156+
border-radius: 12px;
157+
cursor: pointer;
146158
}

0 commit comments

Comments
 (0)