diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-09-29 11:47:06 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-10-24 12:25:00 +0200 |
| commit | 81b1e0e05919eb368a66aef47adcf7738af76f29 (patch) | |
| tree | 758577d3f58d7025f84bca5bac9bc0da8432deb7 /src/components/atoms/images/icons | |
| parent | 3272ac336da52364ace5ed76d8f609d4088ffc06 (diff) | |
refactor(components): rewrite Spinner component
* Message should be set as children
* Default message is no longer available (depending on use case, the
consumer might prefer aria-label instead)
* It is now possible to define the message position
Diffstat (limited to 'src/components/atoms/images/icons')
| -rw-r--r-- | src/components/atoms/images/icons/svg-paths/icons-paths/arrow-icon-paths.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/atoms/images/icons/svg-paths/icons-paths/arrow-icon-paths.tsx b/src/components/atoms/images/icons/svg-paths/icons-paths/arrow-icon-paths.tsx index ee29d5d..0dc701a 100644 --- a/src/components/atoms/images/icons/svg-paths/icons-paths/arrow-icon-paths.tsx +++ b/src/components/atoms/images/icons/svg-paths/icons-paths/arrow-icon-paths.tsx @@ -1,7 +1,8 @@ /* eslint-disable react/jsx-no-literals */ import type { FC } from 'react'; +import type { Position } from '../../../../../types'; -export type ArrowOrientation = 'top' | 'right' | 'bottom' | 'left'; +export type ArrowOrientation = Exclude<Position, 'center'>; const getArrowBarPathFrom = (orientation: ArrowOrientation) => { switch (orientation) { |
