refactor: convert function to single-expression arrow function
This commit is contained in:
parent
9ce126aee3
commit
f144c8a7cb
2 changed files with 7 additions and 10 deletions
|
|
@ -130,13 +130,12 @@ const CustomInfoRequestsData = ({ data }) => {
|
|||
)
|
||||
}
|
||||
|
||||
const getAuthorizedStatus = it => {
|
||||
return it.approved === null
|
||||
const getAuthorizedStatus = it =>
|
||||
it.approved === null
|
||||
? { label: 'Pending', type: 'neutral' }
|
||||
: it.approved === false
|
||||
? { label: 'Rejected', type: 'error' }
|
||||
: { label: 'Accepted', type: 'success' }
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue