Skip to content

Commit

Permalink
fix(Storybook): fixes minor code errors
Browse files Browse the repository at this point in the history
  • Loading branch information
arwehrman committed Nov 2, 2023
1 parent b6dd1f7 commit ddc882c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,6 @@ export const AddingItems = args =>
};
AddingItems.args = {
scrollIndex: 0,
//lazyUpCount: undefined, assigning a value of undefined to args breaks the component
lazyUpCountBuffer: 2
};
AddingItems.argTypes = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ class Basic extends lng.Component {

`ListItem` has the same properties as the ones listed in [Button](?path=/docs/components-button--basic) in addition to a couple listed below:

<ArgTypes of={ListItemStories} />

| name | type | default | description |
| -------------- | ------- | --------- | ------------------------------------------------------------------------------------- |
| description | string | undefined | description text |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ export const AddingItems = args =>
};
AddingItems.args = {
...sharedArgs,
//lazyUpCount: undefined,
lazyUpCountBuffer: 2
};
AddingItems.argTypes = {
Expand Down
2 changes: 1 addition & 1 deletion packages/@lightningjs/ui-components/src/docs/Base.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class MyComponent extends withMixins(Base) {}

### Methods

#### static get componentName(): string
#### static get \_\_componentName(): string

Any component which extends the Base component and uses the `withThemeStyles` mixin requires this static accessor, which returns the name of the component. This name is used by the theme file in order to map component overrides and extensions.

Expand Down

0 comments on commit ddc882c

Please sign in to comment.