diff --git a/src/app/features/approver/approver.stories.tsx b/src/app/features/approver/approver.stories.tsx index 97994b7b474..7ae20e03dd2 100644 --- a/src/app/features/approver/approver.stories.tsx +++ b/src/app/features/approver/approver.stories.tsx @@ -13,7 +13,6 @@ const meta: Meta = { component: Approver, tags: ['autodocs'], title: 'Feature/Approver', - render: ({ children, ...args }) => ( {children} @@ -25,78 +24,105 @@ export default meta; type Story = StoryObj; -export const ExampleOne: Story = { - args: { - children: ( - <> - - +function DemoApproverContent() { + return ( + <> + {' '} + + + Subheader with icon + + + } + titleLeft={} + titleRight={} + captionLeft={} + captionRight={} + /> + + Subheader 2 + } + align="top" + mb="space.03" + > + + + + + + Example rich content with avatar + } + /> + + - - Subheader with icon - - + In the advanced section + {}} mt="space.03" mb="space.03"> } - titleLeft={} - titleRight={} - captionLeft={} - captionRight={} /> - Subheader 2 - } - align="top" - mb="space.03" - > - - + + + Inputs & Outputs + }> + - Example rich content with avatar - } - /> + Transaction raw data + }> + + + + + Additional info + }> + + - - - In the advanced section - {}} mt="space.03" mb="space.03"> - } - /> - - - - Inputs & Outputs - }> - - - - - Transaction raw data - }> - - - - - Additional info - }> - - - - + + + ); +} +export const Pending: Story = { + args: { + children: ( + <> + + + + + + + + } + /> + + ), + }, +}; +export const Completed: Story = { + args: { + children: ( + <> + + + @@ -116,7 +142,7 @@ export const ActionsAlignToBottom: Story = { <> - + {capitalize(status)} {toLocalizedDateFormat(dayjs())} diff --git a/src/app/ui/animations/loading-striped-gradient.tsx b/src/app/ui/animations/loading-striped-gradient.tsx index 6177eeb51cc..8db6adb24ad 100644 --- a/src/app/ui/animations/loading-striped-gradient.tsx +++ b/src/app/ui/animations/loading-striped-gradient.tsx @@ -3,14 +3,14 @@ import { css } from 'leather-styles/css'; export const loadingStripedGradient = css({ pos: 'relative', overflow: 'hidden', - content: '""', - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0, - backgroundImage: - 'repeating-linear-gradient(45deg, #F07D12, #F07D12 16px, #FFB977 16px, #FFB977 32px)', - animation: 'barberpole 30s linear infinite', - backgroundSize: '193% 100%', + _before: { + content: '""', + position: 'absolute', + width: '500px', + height: '500px', + backgroundImage: + 'repeating-linear-gradient(45deg, #F07D12, #F07D12 16px, #FFB977 16px, #FFB977 32px)', + animation: 'barberpole 40s linear infinite', + backgroundSize: '193% 100%', + }, });