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