Skip to content

Commit b7cfb39

Browse files
committed
Make fmt
1 parent 7dee309 commit b7cfb39

File tree

2 files changed

+62
-57
lines changed

2 files changed

+62
-57
lines changed

site/src/components/Resources/AgentRow.stories.tsx

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,26 @@ const TemplateWithPortForward: Story<AgentRowProps> = (args) => {
4848
return TemplateFC(args, MockRegions, MockPrimaryRegion)
4949
}
5050

51-
const TemplateFC = (args: AgentRowProps, regions: Region[], selectedRegion?: Region) => {
52-
return <ProxyContext.Provider
53-
value={{
54-
proxy: getURLs(regions, selectedRegion),
55-
isLoading: false,
56-
setProxy: () => {
57-
return
58-
},
59-
}}
60-
>
61-
<AgentRow {...args} />
62-
</ProxyContext.Provider>
51+
const TemplateFC = (
52+
args: AgentRowProps,
53+
regions: Region[],
54+
selectedRegion?: Region,
55+
) => {
56+
return (
57+
<ProxyContext.Provider
58+
value={{
59+
proxy: getURLs(regions, selectedRegion),
60+
isLoading: false,
61+
setProxy: () => {
62+
return
63+
},
64+
}}
65+
>
66+
<AgentRow {...args} />
67+
</ProxyContext.Provider>
68+
)
6369
}
6470

65-
6671
const defaultAgentMetadata = [
6772
{
6873
result: {

site/src/pages/UserSettingsPage/WorkspaceProxyPage/WorkspaceProxyView.tsx

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -34,47 +34,47 @@ export const WorkspaceProxyView: FC<
3434
selectProxyError,
3535
preferredProxy,
3636
}) => {
37-
return (
38-
<Stack>
39-
{Boolean(getWorkspaceProxiesError) && (
40-
<AlertBanner severity="error" error={getWorkspaceProxiesError} />
41-
)}
42-
{Boolean(selectProxyError) && (
43-
<AlertBanner severity="error" error={selectProxyError} />
44-
)}
45-
<TableContainer>
46-
<Table>
47-
<TableHead>
48-
<TableRow>
49-
<TableCell width="40%">Proxy</TableCell>
50-
<TableCell width="30%">URL</TableCell>
51-
<TableCell width="10%">Status</TableCell>
52-
</TableRow>
53-
</TableHead>
54-
<TableBody>
55-
<ChooseOne>
56-
<Cond condition={isLoading}>
57-
<TableLoader />
58-
</Cond>
59-
<Cond condition={hasLoaded && proxies?.length === 0}>
60-
<TableEmpty message="No workspace proxies found" />
61-
</Cond>
62-
<Cond>
63-
{proxies?.map((proxy) => (
64-
<ProxyRow
65-
key={proxy.id}
66-
proxy={proxy}
67-
onSelectRegion={onSelect}
68-
preferred={
69-
preferredProxy ? proxy.id === preferredProxy.id : false
70-
}
71-
/>
72-
))}
73-
</Cond>
74-
</ChooseOne>
75-
</TableBody>
76-
</Table>
77-
</TableContainer>
78-
</Stack>
79-
)
80-
}
37+
return (
38+
<Stack>
39+
{Boolean(getWorkspaceProxiesError) && (
40+
<AlertBanner severity="error" error={getWorkspaceProxiesError} />
41+
)}
42+
{Boolean(selectProxyError) && (
43+
<AlertBanner severity="error" error={selectProxyError} />
44+
)}
45+
<TableContainer>
46+
<Table>
47+
<TableHead>
48+
<TableRow>
49+
<TableCell width="40%">Proxy</TableCell>
50+
<TableCell width="30%">URL</TableCell>
51+
<TableCell width="10%">Status</TableCell>
52+
</TableRow>
53+
</TableHead>
54+
<TableBody>
55+
<ChooseOne>
56+
<Cond condition={isLoading}>
57+
<TableLoader />
58+
</Cond>
59+
<Cond condition={hasLoaded && proxies?.length === 0}>
60+
<TableEmpty message="No workspace proxies found" />
61+
</Cond>
62+
<Cond>
63+
{proxies?.map((proxy) => (
64+
<ProxyRow
65+
key={proxy.id}
66+
proxy={proxy}
67+
onSelectRegion={onSelect}
68+
preferred={
69+
preferredProxy ? proxy.id === preferredProxy.id : false
70+
}
71+
/>
72+
))}
73+
</Cond>
74+
</ChooseOne>
75+
</TableBody>
76+
</Table>
77+
</TableContainer>
78+
</Stack>
79+
)
80+
}

0 commit comments

Comments
 (0)