Skip to content

Commit ddb858f

Browse files
committed
style: 💄 format to merge
1 parent b7de9f6 commit ddb858f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/providers/recent-bills-store.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ function saveRecentBill(bill: Pick<RecentBill, "id" | "name">): void {
3232
localStorage.setItem(BILLS_KEY, JSON.stringify(bills));
3333
}
3434

35-
function removeRecentBill(id: string): RecentBill[]{
35+
function removeRecentBill(id: string): RecentBill[] {
3636
const bills = getRecentBills();
3737

3838
// eslint-disable-next-line @typescript-eslint/no-unused-vars
39-
const {[id]: removeBill, ...newBills} = bills;
39+
const { [id]: removeBill, ...newBills } = bills;
4040

4141
localStorage.setItem(BILLS_KEY, JSON.stringify(newBills));
4242

src/routes/index.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ export default component$(() => {
5555
<button
5656
class="text-[#c0392b] hover:text-[#34495e] ml-2"
5757
onClick$={() => {
58-
recentBills.value = recentBillsStore.removeRecentBill(bill.id);
58+
recentBills.value = recentBillsStore.removeRecentBill(
59+
bill.id,
60+
);
5961
}}
6062
>
61-
<FaXmarkSolid font-size={24}/>
63+
<FaXmarkSolid font-size={24} />
6264
</button>
6365
</li>
6466
))}

0 commit comments

Comments
 (0)