Skip to content

Commit 5216bef

Browse files
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 f81c1af commit 5216bef

File tree

6 files changed

+500
-670
lines changed

6 files changed

+500
-670
lines changed

0 commit comments

Comments
 (0)