mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
19 lines
482 B
TypeScript
19 lines
482 B
TypeScript
import { ListItem } from '@shared/atoms/Lists'
|
|
import { useFormikContext } from 'formik'
|
|
import React, { ReactElement } from 'react'
|
|
import { FormPublishData } from '../_types'
|
|
|
|
export function Feedback(): ReactElement {
|
|
const { values } = useFormikContext<FormPublishData>()
|
|
|
|
const items = Object.entries(values.feedback).map(([key, value], index) => {
|
|
return (
|
|
<ListItem ol key={index}>
|
|
{value.name}
|
|
</ListItem>
|
|
)
|
|
})
|
|
|
|
return <ol>{items}</ol>
|
|
}
|