refactor: reorganize imports and improve session handling in various components 🔨
This commit is contained in:
@@ -29,7 +29,7 @@ export async function DevicesTable({
|
||||
}) {
|
||||
const resolvedParams = await searchParams;
|
||||
const session = await getServerSession(authOptions);
|
||||
const isAdmin = session?.user?.is_superuser;
|
||||
const isAdmin = session?.user?.is_admin;
|
||||
|
||||
const page = Number.parseInt(resolvedParams.page as string) || 1;
|
||||
const limit = 10;
|
||||
|
||||
Reference in New Issue
Block a user