Commit 039d39a
committed
[Dashboard] Abstract code for CSV upload form (#5324)
DASH-372
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on enhancing the CSV upload functionality by refactoring components to use a new `useCsvUpload` hook, which centralizes CSV processing logic. It introduces a `CsvDataTable` component for displaying data and improves address validation in the airdrop and snapshot upload processes.
### Detailed summary
- Introduced `CsvDataTable` component for displaying CSV data.
- Refactored `AirdropUpload` and `SnapshotUpload` to use `useCsvUpload` hook.
- Centralized CSV parsing logic in `csvParser` functions.
- Improved address validation and error handling in CSV uploads.
- Removed redundant address checking functions from `AirdropUpload` and `SnapshotUpload`.
- Enhanced pagination and UI updates in CSV data tables.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->1 parent 022e403 commit 039d39a
File tree
6 files changed
+500
-670
lines changed- apps
- dashboard/src
- app
- (dashboard)/(chain)/[chain_id]/[contractAddress]
- _components
- claim-conditions
- tokens/components
- team/components/TeamHeader
- hooks
- playground-web/src/components/in-app-wallet
6 files changed
+500
-670
lines changed
0 commit comments