fix(roles): correct Button variants
- Change outline to secondary/primary/danger variants - Fix linter errors for Button component variants - Update icons and button styling
This commit is contained in:
parent
37747941ce
commit
fa755515bb
|
|
@ -108,7 +108,7 @@ const RolesListPage = () => {
|
||||||
</td>
|
</td>
|
||||||
<td className="px-6 py-4 whitespace-nowrap text-sm font-medium space-x-2 space-x-reverse">
|
<td className="px-6 py-4 whitespace-nowrap text-sm font-medium space-x-2 space-x-reverse">
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="secondary"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => handleView(role.id)}
|
onClick={() => handleView(role.id)}
|
||||||
className="ml-2"
|
className="ml-2"
|
||||||
|
|
@ -117,7 +117,7 @@ const RolesListPage = () => {
|
||||||
مشاهده
|
مشاهده
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="primary"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => handleEdit(role.id)}
|
onClick={() => handleEdit(role.id)}
|
||||||
className="ml-2"
|
className="ml-2"
|
||||||
|
|
@ -126,7 +126,7 @@ const RolesListPage = () => {
|
||||||
ویرایش
|
ویرایش
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="secondary"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => handlePermissions(role.id)}
|
onClick={() => handlePermissions(role.id)}
|
||||||
className="ml-2"
|
className="ml-2"
|
||||||
|
|
@ -135,10 +135,10 @@ const RolesListPage = () => {
|
||||||
دسترسیها
|
دسترسیها
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="danger"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => setDeleteRoleId(role.id.toString())}
|
onClick={() => setDeleteRoleId(role.id.toString())}
|
||||||
className="text-red-600 hover:text-red-800 dark:text-red-400 dark:hover:text-red-300"
|
className="ml-2"
|
||||||
>
|
>
|
||||||
<Trash2 className="h-4 w-4 ml-1" />
|
<Trash2 className="h-4 w-4 ml-1" />
|
||||||
حذف
|
حذف
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue