Update dependencies and refactor loading components
- Removed `react-is` and `require-in-the-middle` overrides from `package.json` and `pnpm-lock.yaml`. - Updated various dependencies across multiple packages, including `@types/node` to `^24.5.2`, `react-hook-form` to `^7.63.0`, and `@ai-sdk/openai` to `^2.0.32`. - Deleted the `loading.tsx` component from the admin accounts directory, streamlining the codebase. - Adjusted `playwright.config.ts` to use a configurable number of workers for CI environments, enhancing test performance. - Improved error handling in user ban and reactivation dialogs to provide clearer feedback to the admin user.
This commit is contained in:
@@ -43,11 +43,9 @@ export const banUserAction = adminAction(
|
||||
};
|
||||
}
|
||||
|
||||
logger.info({ userId }, `Super Admin has successfully banned user`);
|
||||
|
||||
revalidateAdmin();
|
||||
|
||||
return redirect(`/admin/accounts/${userId}`);
|
||||
logger.info({ userId }, `Super Admin has successfully banned user`);
|
||||
},
|
||||
{
|
||||
schema: BanUserSchema,
|
||||
@@ -80,8 +78,6 @@ export const reactivateUserAction = adminAction(
|
||||
revalidateAdmin();
|
||||
|
||||
logger.info({ userId }, `Super Admin has successfully reactivated user`);
|
||||
|
||||
return redirect(`/admin/accounts/${userId}`);
|
||||
},
|
||||
{
|
||||
schema: ReactivateUserSchema,
|
||||
|
||||
Reference in New Issue
Block a user