mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 23:02:00 +08:00
added todo section
This commit is contained in:
parent
9bb2fcc4d1
commit
92b17e994c
@ -229,6 +229,29 @@ const Content = styled(({ tests, className }: ContentProps) => (
|
|||||||
)}
|
)}
|
||||||
</List>
|
</List>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
id="todo-tests"
|
||||||
|
title={`${
|
||||||
|
testsByType.get(StatusTypes.TODO_TYPE)
|
||||||
|
? testsByType.get(StatusTypes.TODO_TYPE).length
|
||||||
|
: 0
|
||||||
|
} Todo`}
|
||||||
|
color={getColorByType(StatusTypes.TODO_TYPE)}
|
||||||
|
>
|
||||||
|
<List>
|
||||||
|
{testsByType.get(StatusTypes.TODO_TYPE) ? (
|
||||||
|
testsByType.get(StatusTypes.TODO_TYPE).map((res: any) => (
|
||||||
|
<Item key={res.fullName || res.title}>
|
||||||
|
<Result {...res} />
|
||||||
|
</Item>
|
||||||
|
))
|
||||||
|
) : (
|
||||||
|
<Placeholder key={`no-tests-${StatusTypes.TODO_TYPE}`}>
|
||||||
|
This story has no tests todo.
|
||||||
|
</Placeholder>
|
||||||
|
)}
|
||||||
|
</List>
|
||||||
|
</div>
|
||||||
</TabsState>
|
</TabsState>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user