Refactor admin action naming and move user assertions
Renamed the admin actions to have a more uniform approach with "Action" suffixed. This makes the action function's purpose clear in the codebase. Also, moved the `assertUserIsNotCurrentSuperAdmin` method to a more suitable place in the code, arranging it in a private scope. This helps in maintaining clean code architecture and enhances readibility.
This commit is contained in:
@@ -42,10 +42,13 @@ function getClassName() {
|
||||
const theme = themeCookie ?? appConfig.theme;
|
||||
const dark = theme === 'dark';
|
||||
|
||||
return cn('min-h-screen bg-background antialiased', {
|
||||
dark,
|
||||
[sans.className]: true,
|
||||
});
|
||||
return cn(
|
||||
'min-h-screen bg-background antialiased',
|
||||
{
|
||||
dark,
|
||||
},
|
||||
sans.className,
|
||||
);
|
||||
}
|
||||
|
||||
export const metadata = {
|
||||
|
||||
Reference in New Issue
Block a user