Browse Source

Feature/set up Storybook story for activity type component (#5234)

* Set up Storybook story for activity type component

* Update changelog
pull/5250/head
Anirban Biswas 2 weeks ago
committed by GitHub
parent
commit
71fba8d204
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 30
      libs/ui/src/lib/activity-type/activity-type.component.stories.ts

4
CHANGELOG.md

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased ## Unreleased
### Added
- Added a _Storybook_ story for the activity type component
### Changed ### Changed
- Refactored the toggle component to standalone - Refactored the toggle component to standalone

30
libs/ui/src/lib/activity-type/activity-type.component.stories.ts

@ -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…
Cancel
Save