chore: clean up code formatting and remove unnecessary whitespace across multiple files for improved readability
This commit is contained in:
@@ -29,4 +29,3 @@ export const authConfig: NextAuthConfig = {
|
||||
},
|
||||
providers: [], // Configured in auth.ts
|
||||
};
|
||||
|
||||
|
||||
@@ -59,4 +59,3 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -14,11 +14,7 @@ export function getGravatarUrl(
|
||||
size: number = 40,
|
||||
fallback: GravatarDefault = 'identicon'
|
||||
): string {
|
||||
const hash = createHash('md5')
|
||||
.update(email.toLowerCase().trim())
|
||||
.digest('hex');
|
||||
const hash = createHash('md5').update(email.toLowerCase().trim()).digest('hex');
|
||||
|
||||
return `https://www.gravatar.com/avatar/${hash}?d=${fallback}&s=${size}`;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ export const MOTIVATORS_CONFIG: MotivatorConfig[] = [
|
||||
type: 'POWER',
|
||||
name: 'Pouvoir',
|
||||
icon: '⚡',
|
||||
description: 'Avoir de l\'influence et du contrôle sur les décisions',
|
||||
description: "Avoir de l'influence et du contrôle sur les décisions",
|
||||
color: '#ef4444', // red
|
||||
},
|
||||
{
|
||||
@@ -291,12 +291,10 @@ export const MOTIVATORS_CONFIG: MotivatorConfig[] = [
|
||||
},
|
||||
];
|
||||
|
||||
export const MOTIVATOR_BY_TYPE: Record<MotivatorType, MotivatorConfig> =
|
||||
MOTIVATORS_CONFIG.reduce(
|
||||
(acc, config) => {
|
||||
acc[config.type] = config;
|
||||
return acc;
|
||||
},
|
||||
{} as Record<MotivatorType, MotivatorConfig>
|
||||
);
|
||||
|
||||
export const MOTIVATOR_BY_TYPE: Record<MotivatorType, MotivatorConfig> = MOTIVATORS_CONFIG.reduce(
|
||||
(acc, config) => {
|
||||
acc[config.type] = config;
|
||||
return acc;
|
||||
},
|
||||
{} as Record<MotivatorType, MotivatorConfig>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user