Skip to content

Commit

Permalink
fix(list): fix list story (#1529)
Browse files Browse the repository at this point in the history
Co-authored-by: zhujiahong <zhujiahong@growingio.com>
  • Loading branch information
zhuzilv and zhujiahong committed Nov 26, 2021
1 parent 5318764 commit bf96e0a
Show file tree
Hide file tree
Showing 6 changed files with 395 additions and 52 deletions.
1 change: 1 addition & 0 deletions .storybook/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
font-size: 14px;
text-align: left;
background-color: #f7f8fc;
color: #242e59;
}
td {
padding: 5px 5px;
Expand Down
9 changes: 3 additions & 6 deletions src/list/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ const selectStatus = (value?: string, values?: string | string[]) => {
return undefined;
};

export const List: React.ForwardRefRenderFunction<HTMLDivElement, ListProps> & {
isGIOList?: boolean;
} = (props, ref?) => {
export const List = WithRef<HTMLDivElement, ListProps>((props, ref?) => {
const {
id,
title,
Expand Down Expand Up @@ -167,6 +165,5 @@ export const List: React.ForwardRefRenderFunction<HTMLDivElement, ListProps> & {
</div>
</ListContext.Provider>
);
};
List.isGIOList = true;
export default WithRef(List);
});
export default List;

1 comment on commit bf96e0a

@vercel
Copy link

@vercel vercel bot commented on bf96e0a Nov 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.