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