Feature/set up Storybook story for activity type component (#5234)
* Set up Storybook story for activity type component * Update changelogpull/5250/head
parent
43d41f7f40
commit
71fba8d204
@ -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