chore: clean up code formatting and remove unnecessary whitespace across multiple files for improved readability
This commit is contained in:
@@ -11,22 +11,17 @@ interface HelpContent {
|
||||
|
||||
const HELP_CONTENT: Record<SwotCategory, HelpContent> = {
|
||||
STRENGTH: {
|
||||
description:
|
||||
'Les atouts internes et qualités qui distinguent positivement.',
|
||||
description: 'Les atouts internes et qualités qui distinguent positivement.',
|
||||
examples: [
|
||||
'Expertise technique solide',
|
||||
'Excellentes capacités de communication',
|
||||
'Leadership naturel',
|
||||
'Rigueur et organisation',
|
||||
],
|
||||
questions: [
|
||||
'Qu\'est-ce qui le/la distingue ?',
|
||||
'Quels retours positifs reçoit-il/elle ?',
|
||||
],
|
||||
questions: ["Qu'est-ce qui le/la distingue ?", 'Quels retours positifs reçoit-il/elle ?'],
|
||||
},
|
||||
WEAKNESS: {
|
||||
description:
|
||||
'Les axes d\'amélioration et points à travailler.',
|
||||
description: "Les axes d'amélioration et points à travailler.",
|
||||
examples: [
|
||||
'Difficulté à déléguer',
|
||||
'Gestion du stress à améliorer',
|
||||
@@ -39,22 +34,17 @@ const HELP_CONTENT: Record<SwotCategory, HelpContent> = {
|
||||
],
|
||||
},
|
||||
OPPORTUNITY: {
|
||||
description:
|
||||
'Les facteurs externes favorables à saisir.',
|
||||
description: 'Les facteurs externes favorables à saisir.',
|
||||
examples: [
|
||||
'Nouveau projet stratégique',
|
||||
'Formation disponible',
|
||||
'Poste ouvert en interne',
|
||||
'Mentor potentiel identifié',
|
||||
],
|
||||
questions: [
|
||||
'Quelles évolutions pourraient l\'aider ?',
|
||||
'Quelles ressources sont disponibles ?',
|
||||
],
|
||||
questions: ["Quelles évolutions pourraient l'aider ?", 'Quelles ressources sont disponibles ?'],
|
||||
},
|
||||
THREAT: {
|
||||
description:
|
||||
'Les risques externes à anticiper.',
|
||||
description: 'Les risques externes à anticiper.',
|
||||
examples: [
|
||||
'Réorganisation menaçant le poste',
|
||||
'Compétences devenant obsolètes',
|
||||
@@ -82,9 +72,10 @@ export function QuadrantHelp({ category }: QuadrantHelpProps) {
|
||||
className={`
|
||||
flex h-5 w-5 items-center justify-center rounded-full
|
||||
text-xs font-medium transition-all
|
||||
${isOpen
|
||||
? 'bg-foreground/20 text-foreground rotate-45'
|
||||
: 'bg-foreground/5 text-muted hover:bg-foreground/10 hover:text-foreground'
|
||||
${
|
||||
isOpen
|
||||
? 'bg-foreground/20 text-foreground rotate-45'
|
||||
: 'bg-foreground/5 text-muted hover:bg-foreground/10 hover:text-foreground'
|
||||
}
|
||||
`}
|
||||
aria-label="Aide"
|
||||
@@ -113,9 +104,7 @@ export function QuadrantHelpPanel({ category, isOpen }: QuadrantHelpPanelProps)
|
||||
<div className="overflow-hidden">
|
||||
<div className="rounded-lg bg-white/40 dark:bg-black/20 p-3 mb-3">
|
||||
{/* Description */}
|
||||
<p className="text-xs text-foreground/80 leading-relaxed">
|
||||
{content.description}
|
||||
</p>
|
||||
<p className="text-xs text-foreground/80 leading-relaxed">{content.description}</p>
|
||||
|
||||
<div className="mt-3 flex gap-4">
|
||||
{/* Examples */}
|
||||
@@ -125,10 +114,7 @@ export function QuadrantHelpPanel({ category, isOpen }: QuadrantHelpPanelProps)
|
||||
</h4>
|
||||
<ul className="space-y-0.5">
|
||||
{content.examples.map((example, i) => (
|
||||
<li
|
||||
key={i}
|
||||
className="flex items-start gap-1.5 text-xs text-foreground/70"
|
||||
>
|
||||
<li key={i} className="flex items-start gap-1.5 text-xs text-foreground/70">
|
||||
<span className="mt-1.5 h-1 w-1 flex-shrink-0 rounded-full bg-current opacity-50" />
|
||||
{example}
|
||||
</li>
|
||||
@@ -143,10 +129,7 @@ export function QuadrantHelpPanel({ category, isOpen }: QuadrantHelpPanelProps)
|
||||
</h4>
|
||||
<ul className="space-y-1">
|
||||
{content.questions.map((question, i) => (
|
||||
<li
|
||||
key={i}
|
||||
className="text-xs italic text-foreground/60"
|
||||
>
|
||||
<li key={i} className="text-xs italic text-foreground/60">
|
||||
{question}
|
||||
</li>
|
||||
))}
|
||||
@@ -158,4 +141,3 @@ export function QuadrantHelpPanel({ category, isOpen }: QuadrantHelpPanelProps)
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user