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({
}
>
<SelectNext.Option value={allAnnotationsOption}>
{() => (
<UserAnnotationsListItem
userAnnotations={allAnnotationsOption}
/>
)}
<UserAnnotationsListItem userAnnotations={allAnnotationsOption} />
</SelectNext.Option>
{userList.map(userInfo => (
<SelectNext.Option key={userInfo.userid} value={userInfo}>
{() => <UserAnnotationsListItem userAnnotations={userInfo} />}
<UserAnnotationsListItem userAnnotations={userInfo} />
</SelectNext.Option>
))}
</SelectNext>
......
......@@ -177,7 +177,7 @@ function ImportAnnotations({
>
{userList.map(userInfo => (
<SelectNext.Option key={userInfo.userid} value={userInfo}>
{() => <UserAnnotationsListItem userAnnotations={userInfo} />}
<UserAnnotationsListItem userAnnotations={userInfo} />
</SelectNext.Option>
))}
</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