mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Set up Storybook story for activity type component * Update changelogpull/5250/head
committed by
GitHub
2 changed files with 34 additions and 0 deletions
@ -0,0 +1,30 @@ |
|||||
|
import { CommonModule } from '@angular/common'; |
||||
|
import { IonIcon } from '@ionic/angular/standalone'; |
||||
|
import { moduleMetadata } from '@storybook/angular'; |
||||
|
import type { Meta, StoryObj } from '@storybook/angular'; |
||||
|
|
||||
|
import { GfActivityTypeComponent } from './activity-type.component'; |
||||
|
|
||||
|
export default { |
||||
|
title: 'Activity Type', |
||||
|
component: GfActivityTypeComponent, |
||||
|
decorators: [ |
||||
|
moduleMetadata({ |
||||
|
imports: [CommonModule, IonIcon] |
||||
|
}) |
||||
|
], |
||||
|
argTypes: { |
||||
|
activityType: { |
||||
|
control: 'select', |
||||
|
options: ['BUY', 'DIVIDEND', 'FEE', 'INTEREST', 'LIABILITY', 'SELL'] |
||||
|
} |
||||
|
} |
||||
|
} as Meta<GfActivityTypeComponent>; |
||||
|
|
||||
|
type Story = StoryObj<GfActivityTypeComponent>; |
||||
|
|
||||
|
export const Default: Story = { |
||||
|
args: { |
||||
|
activityType: 'BUY' |
||||
|
} |
||||
|
}; |
Loading…
Reference in new issue