Browse Source

Refactoring

pull/5248/head
Thomas Kaul 4 weeks ago
parent
commit
639e7fa086
  1. 18
      libs/ui/src/lib/toggle/toggle.component.stories.ts

18
libs/ui/src/lib/toggle/toggle.component.stories.ts

@ -6,14 +6,6 @@ import type { Meta, StoryObj } from '@storybook/angular';
import { GfToggleComponent } from './toggle.component'; import { GfToggleComponent } from './toggle.component';
const DEFAULT_OPTIONS = [
{ label: 'Today', value: '1d' },
{ label: 'YTD', value: 'ytd' },
{ label: '1Y', value: '1y' },
{ label: '5Y', value: '5y' },
{ label: 'Max', value: 'max' }
];
export default { export default {
title: 'Toggle', title: 'Toggle',
component: GfToggleComponent, component: GfToggleComponent,
@ -28,8 +20,14 @@ type Story = StoryObj<GfToggleComponent>;
export const Default: Story = { export const Default: Story = {
args: { args: {
options: DEFAULT_OPTIONS,
defaultValue: '1d', defaultValue: '1d',
isLoading: true isLoading: false,
options: [
{ label: 'Today', value: '1d' },
{ label: 'YTD', value: 'ytd' },
{ label: '1Y', value: '1y' },
{ label: '5Y', value: '5y' },
{ label: 'Max', value: 'max' }
]
} }
}; };

Loading…
Cancel
Save