File tree 2 files changed +23
-15
lines changed
2 files changed +23
-15
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,11 @@ const useStyles = makeStyles<
101
101
borderRadius : theme . shape . borderRadius ,
102
102
overflowX : "auto" ,
103
103
background : theme . palette . background . default ,
104
- borderBottom : `1px solid ${ theme . palette . divider } ` ,
104
+
105
+ "&:not(:last-child)" : {
106
+ borderBottom : `1px solid ${ theme . palette . divider } ` ,
107
+ borderRadius : 0 ,
108
+ } ,
105
109
} ,
106
110
scrollWrapper : {
107
111
minWidth : "fit-content" ,
Original file line number Diff line number Diff line change 1
- import { ComponentMeta , Story } from "@storybook/react"
2
- import { MockWorkspaceBuildLogs } from "../../testHelpers/entities"
3
- import {
4
- WorkspaceBuildLogs ,
5
- WorkspaceBuildLogsProps ,
6
- } from "./WorkspaceBuildLogs"
1
+ import { Meta , StoryObj } from "@storybook/react"
2
+ import { WorkspaceBuildLogs } from "./WorkspaceBuildLogs"
3
+ import { MockWorkspaceBuildLogs } from "testHelpers/entities"
7
4
8
- export default {
5
+ const meta : Meta < typeof WorkspaceBuildLogs > = {
9
6
title : "components/WorkspaceBuildLogs" ,
10
7
component : WorkspaceBuildLogs ,
11
- } as ComponentMeta < typeof WorkspaceBuildLogs >
8
+ }
9
+
10
+ export default meta
12
11
13
- const Template : Story < WorkspaceBuildLogsProps > = ( args ) => (
14
- < WorkspaceBuildLogs { ...args } />
15
- )
12
+ type Story = StoryObj < typeof WorkspaceBuildLogs >
13
+
14
+ export const InProgress : Story = {
15
+ args : {
16
+ logs : MockWorkspaceBuildLogs . slice ( 0 , 20 ) ,
17
+ } ,
18
+ }
16
19
17
- export const Example = Template . bind ( { } )
18
- Example . args = {
19
- logs : MockWorkspaceBuildLogs ,
20
+ export const Completed : Story = {
21
+ args : {
22
+ logs : MockWorkspaceBuildLogs ,
23
+ } ,
20
24
}
You can’t perform that action at this time.
0 commit comments