4 Commits

Author SHA1 Message Date
Delba de Oliveira
728368d712 Fix pagination bugs and refactor/abstract styling logic (#205)
* Simplify TS

* Abstract away pagination logic

* Clean up

* Fix bugs and refactor styling logic

* Add comments

* Fix border bug for single page

* Fix search pagination
2023-10-09 16:59:24 +01:00
Delba de Oliveira
b0d832e2cf Code for Chapters 9-10 (#172) 2023-10-02 09:26:13 -05:00
Delba de Oliveira
2897b290d3 Simplify invoices table.tsx component (#166)
* Rename file and add data fetches for overview page

* Rename calculations.ts to utils.ts

* Update code to match course

* Add temporary calculation

* Fix error

* Move types to data fetching file

* Add error handling

* Parallelize data fetches

* Add skeletons

* Add delayed data request

* Fix ts errors

* Code for chapter 8

* Fix error

* Clean up

* Move formatDateToLocal to utils file

* Extract add invoice button

* Extract edit invoice button

* Extract InvoiceStatus

* Use formatCurrency from utils

* Misc

* Use outline icon

* outline!

* Rename table-search to search
2023-09-19 13:24:38 -05:00
Delba de Oliveira
24bcb816e5 Add code for chapters 7-8 (#164)
* Rename file and add data fetches for overview page

* Rename calculations.ts to utils.ts

* Update code to match course

* Add temporary calculation

* Fix error

* Move types to data fetching file

* Add error handling

* Parallelize data fetches

* Add skeletons

* Add delayed data request

* Fix ts errors

* Code for chapter 8

* Fix error

* Clean up

---------

Co-authored-by: Stephanie Dietz <49788645+StephDietz@users.noreply.github.com>
2023-09-19 12:55:02 -05:00