feat: conditionally render delete button based on category code
This commit is contained in:
@@ -68,6 +68,9 @@ export const CategoriesPage = () => {
|
||||
>
|
||||
<PencilSquareIcon className="h-4 w-4" />
|
||||
</Button>
|
||||
{data.code === 'spotlight' ? (
|
||||
''
|
||||
) : (
|
||||
<Button
|
||||
type="button"
|
||||
size="icon"
|
||||
@@ -77,6 +80,7 @@ export const CategoriesPage = () => {
|
||||
>
|
||||
<TrashIcon className="h-4 w-4" />
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user