flx: add unique key prop to ImportCollection options (#2133)

This PR uses the key of the options object in import collection to suppress the unique key prop warning.

Fixes issue #2078
This commit is contained in:
Adam Rashid 2024-04-22 02:30:21 +08:00 committed by GitHub
parent 28e4159c21
commit 60cb9da83e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,7 +79,7 @@ const ImportCollection = ({ onClose, handleSubmit }) => {
</div>
<div className="flex justify-start w-full mt-4 max-w-[450px]">
{Object.entries(options || {}).map(([key, option]) => (
<div className="relative flex items-start">
<div key={key} className="relative flex items-start">
<div className="flex h-6 items-center">
<input
id="comments"