diff --git a/src/frontend/src/primitives/Spinner.tsx b/src/frontend/src/primitives/Spinner.tsx index dc08bd94..dc83836f 100644 --- a/src/frontend/src/primitives/Spinner.tsx +++ b/src/frontend/src/primitives/Spinner.tsx @@ -1,40 +1,33 @@ import { ProgressBar } from 'react-aria-components' import { css } from '@/styled-system/css' -// FIXME - this component will be style after the designer review export const Spinner = () => { - const center = 16 - const strokeWidth = 4 - const r = 16 - strokeWidth + const center = 14 + const strokeWidth = 3 + const r = 14 - strokeWidth const c = 2 * r * Math.PI return ( - + {({ percentage }) => ( <> - { strokeDashoffset={percentage && c - (percentage / 100) * c} strokeLinecap="round" className={css({ - stroke: 'primary.900', + stroke: 'primary.800', })} style={{ - animation: `rotate 1s linear infinite`, + animation: `rotate 1s ease-in-out infinite`, transformOrigin: 'center', transition: 'transform 16ms linear', }}