refactor: refactor superadmin modules
This commit is contained in:
@@ -30,6 +30,7 @@ export default function RolesPage() {
|
||||
skip,
|
||||
setSkip,
|
||||
limit,
|
||||
setLimit,
|
||||
searchTerm,
|
||||
debouncedSearchTerm,
|
||||
setSearchTerm,
|
||||
@@ -108,8 +109,8 @@ export default function RolesPage() {
|
||||
icon={ShieldCheck}
|
||||
actions={
|
||||
<PermissionGuard permissions={PERMISSIONS.ROLE.CREATE}>
|
||||
<Button onClick={openCreate}>
|
||||
<Plus className="mr-2 size-4" />
|
||||
<Button onClick={openCreate} size="sm">
|
||||
<Plus />
|
||||
Add Role
|
||||
</Button>
|
||||
</PermissionGuard>
|
||||
@@ -125,6 +126,7 @@ export default function RolesPage() {
|
||||
limit={limit}
|
||||
total={total}
|
||||
onPageChange={setSkip}
|
||||
onLimitChange={setLimit}
|
||||
/>
|
||||
|
||||
<PoweredBy />
|
||||
|
||||
Reference in New Issue
Block a user