Integrate login and auth server API
This commit is contained in:
@@ -23,12 +23,12 @@ class Category extends Component {
|
||||
|
||||
<Item.Group link unstackable divided>
|
||||
{category.tools.map((x, n) =>
|
||||
<Item as={Link} to={'/' + category.slug + '/' + x.id} key={n}>
|
||||
<Item as={Link} to={'/' + category.slug + '/' + x.slug} key={n}>
|
||||
<Item.Image size='tiny' src={x.photo} />
|
||||
<Item.Content>
|
||||
<Item.Header>{x.name}</Item.Header>
|
||||
<Item.Description>
|
||||
{user.authorizedTools.includes(x.id) ?
|
||||
{user.profile.authorized_tools.includes(x.slug) ?
|
||||
<Label color='green'>
|
||||
<Icon name='check' /> Authorized
|
||||
</Label> : <Label color='red'>
|
||||
|
||||
Reference in New Issue
Block a user