File tree 2 files changed +6
-12
lines changed
site/src/components/Resources 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -607,6 +607,10 @@ const styles = {
607
607
gap : 16 ,
608
608
flexWrap : "wrap" ,
609
609
610
+ "&:empty" : {
611
+ display : "none" ,
612
+ } ,
613
+
610
614
[ theme . breakpoints . down ( "md" ) ] : {
611
615
marginLeft : 0 ,
612
616
justifyContent : "flex-start" ,
Original file line number Diff line number Diff line change 1
- import { action } from "@storybook/addon-actions" ;
2
1
import {
3
2
MockProxyLatencies ,
4
- MockWorkspace ,
5
3
MockWorkspaceResource ,
6
4
} from "testHelpers/entities" ;
7
- import { AgentRow } from "./AgentRow" ;
8
5
import { ResourceCard } from "./ResourceCard" ;
9
6
import { ProxyContext , getPreferredProxy } from "contexts/ProxyContext" ;
10
7
import type { Meta , StoryObj } from "@storybook/react" ;
11
8
import { type WorkspaceAgent } from "api/typesGenerated" ;
9
+ import { AgentRowPreview } from "./AgentRowPreview" ;
12
10
13
11
const meta : Meta < typeof ResourceCard > = {
14
12
title : "components/Resources/ResourceCard" ,
@@ -93,15 +91,7 @@ function getAgentRow(agent: WorkspaceAgent): JSX.Element {
93
91
} ,
94
92
} }
95
93
>
96
- < AgentRow
97
- showApps
98
- key = { agent . id }
99
- agent = { agent }
100
- workspace = { MockWorkspace }
101
- serverVersion = ""
102
- serverAPIVersion = ""
103
- onUpdateAgent = { action ( "updateAgent" ) }
104
- />
94
+ < AgentRowPreview agent = { agent } key = { agent . id } />
105
95
</ ProxyContext . Provider >
106
96
) ;
107
97
}
You can’t perform that action at this time.
0 commit comments