Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

onPageChange #82

Open
jb-modist opened this issue Aug 11, 2022 · 2 comments
Open

onPageChange #82

jb-modist opened this issue Aug 11, 2022 · 2 comments

Comments

@jb-modist
Copy link

We have a scenario where during field selection there may be extra fields. The standard import uses Image Url but in some cases there are multiple, We handle this by having Image Url 1, Image Url 2.... Image Url N in the import file

However, this creates a problem in the mapping, since we now need to map these multiple columns.

To this end in the field selection screen we add a button to change the column definitions, to facilitate this, we need to know when we're looking at the field selection screen,

Please can you add an onPageChange optional callback? Please see attached patch file

react-csv-importer+0.7.1.txt

@unframework
Copy link
Collaborator

Thanks for the patch! For your use case it might be simpler to pass the current step as a value to the children render prop of the importer component?

@jb-modist
Copy link
Author

Yes, that would also work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants