aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/loaders/progress-bar.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): rewrite ProgressBar componentArmand Philippot2023-11-111-57/+0
| | | | | | | * Avoid browser vendors by adding an extra div * Add a loading state * Add an option to center the progress bar (no longer the default) * Remove min since it is always 0
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-6/+4
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* chore: add a label to progress barArmand Philippot2022-06-071-11/+15
| | | | | | The progress element is a form element, so a label is required to be accessible. Since I'm not using it without label, I transform the optional info parameter to a mandatory label parameter.
* refactor: support React 18Armand Philippot2022-04-161-2/+2
| | | | | | | | I replaced the deprecated VFC type with FC type and made all children explicits. Formatjs is still not compatible with React 18 so I need to skip type checking when comitting. There are some type errors because of IntlProvider in Storybook stories.
* refactor: use a consistent classname prop and avoid children propArmand Philippot2022-04-081-5/+5
| | | | | | | | I was using the FunctionComponent type for some component that do not use children. So I change the type to VoidFunctionComponent to avoid mistakes. I also rename all the "classes" or "additionalClasses" props to "className" to keep consistency between each components.
* chore: add a ProgressBar componentArmand Philippot2022-04-051-0/+55