Commit 3876720a authored by Alejandro Celaya's avatar Alejandro Celaya Committed by Alejandro Celaya

Use regular SelectNext.Option children when possible

parent 66405bd9
...@@ -156,15 +156,11 @@ function ExportAnnotations({ ...@@ -156,15 +156,11 @@ function ExportAnnotations({
} }
> >
<SelectNext.Option value={allAnnotationsOption}> <SelectNext.Option value={allAnnotationsOption}>
{() => ( <UserAnnotationsListItem userAnnotations={allAnnotationsOption} />
<UserAnnotationsListItem
userAnnotations={allAnnotationsOption}
/>
)}
</SelectNext.Option> </SelectNext.Option>
{userList.map(userInfo => ( {userList.map(userInfo => (
<SelectNext.Option key={userInfo.userid} value={userInfo}> <SelectNext.Option key={userInfo.userid} value={userInfo}>
{() => <UserAnnotationsListItem userAnnotations={userInfo} />} <UserAnnotationsListItem userAnnotations={userInfo} />
</SelectNext.Option> </SelectNext.Option>
))} ))}
</SelectNext> </SelectNext>
......
...@@ -177,7 +177,7 @@ function ImportAnnotations({ ...@@ -177,7 +177,7 @@ function ImportAnnotations({
> >
{userList.map(userInfo => ( {userList.map(userInfo => (
<SelectNext.Option key={userInfo.userid} value={userInfo}> <SelectNext.Option key={userInfo.userid} value={userInfo}>
{() => <UserAnnotationsListItem userAnnotations={userInfo} />} <UserAnnotationsListItem userAnnotations={userInfo} />
</SelectNext.Option> </SelectNext.Option>
))} ))}
</SelectNext> </SelectNext>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment