diff --git a/frontend/src/features/Dashboard/components/Pdf/GeneratePdfButton.tsx b/frontend/src/features/Dashboard/components/Pdf/GeneratePdfButton.tsx index 06ba8b052..53eebf07d 100644 --- a/frontend/src/features/Dashboard/components/Pdf/GeneratePdfButton.tsx +++ b/frontend/src/features/Dashboard/components/Pdf/GeneratePdfButton.tsx @@ -87,10 +87,22 @@ export function GeneratePdfButton({ dashboard }: GeneratePdfButtonProps) { } return ( - + {pdf.loading ? 'Chargement du brief' : 'Générer un brief'} ) } -const StyledLinkButton = styled(Button)`` +const StyledLinkButton = styled(Button)` + ${p => + p.disabled && + `@keyframes spin { + to { + transform: rotate(360deg); + } + } + > .Element-IconBox > svg { + animation: spin 2s linear infinite; + transform-origin: center; + }`} +`