refactor(admin): pass icon components as references instead of JSX elements
This commit is contained in:
@@ -85,7 +85,7 @@ const RolesPageClient = () => {
|
|||||||
variant="secondary"
|
variant="secondary"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => openEdit(role.id)}
|
onClick={() => openEdit(role.id)}
|
||||||
icon={<PencilEdit01Icon className="w-4 h-4" />}
|
icon={PencilEdit01Icon}
|
||||||
>
|
>
|
||||||
Modifier
|
Modifier
|
||||||
</Button>
|
</Button>
|
||||||
@@ -94,7 +94,7 @@ const RolesPageClient = () => {
|
|||||||
variant="danger"
|
variant="danger"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => handleDelete(role)}
|
onClick={() => handleDelete(role)}
|
||||||
icon={<Cancel01Icon className="w-4 h-4" />}
|
icon={Cancel01Icon}
|
||||||
>
|
>
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user