Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(src/modals/ExportModal.jsx): modernize data export functiona…
…lity This commit updates the `ExportModal.jsx` component to better handle the export of data based on different application modes (test and live) and cleans up unused code. Changes include: - Removed the unused import `getArthropodLabels` from `../utils/firestore`, streamlining the component's dependencies. - Deleted unnecessary blank lines and the invocation of `getArthropodLabels()` within `DataForm`, simplifying the data preparation process for CSV export. - Added `environment` detection within `SessionForm` to dynamically set the collection name based on whether the application is in live or test mode. This makes the export process more adaptable to the application's current state. This refactor improves code readability and maintenance while ensuring the export functionality is more robust and context-aware.
- Loading branch information