hidden add variant if theme noColor_noSize
This commit is contained in:
@@ -74,7 +74,7 @@ const CategoryList: FC = () => {
|
||||
</Td>
|
||||
<Td text={category.description} />
|
||||
<Td text=''>
|
||||
{category.leaf ? <Link to={`${Pages.category.variant}${category._id}`}>
|
||||
{category.leaf && category.theme !== 'noColor_noSize' ? <Link to={`${Pages.category.variant}${category._id}`}>
|
||||
<Button className='h-7 text-xs w-fit px-4' label='افزودن تنوع' />
|
||||
</Link> : <Lock size={20} color='#8C90A3' />}
|
||||
</Td>
|
||||
|
||||
Reference in New Issue
Block a user