Skip to content

Commit b79b460

Browse files
committed
Add another store
1 parent 4075b92 commit b79b460

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

site/src/pages/UserSettingsPage/WorkspaceProxyPage/WorspaceProxyView.stories.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Story } from "@storybook/react"
2-
import { makeMockApiError, MockRegions } from "testHelpers/entities"
2+
import { makeMockApiError, MockRegions, MockPrimaryRegion, MockHealthyWildRegion } from "testHelpers/entities"
33
import {
44
WorkspaceProxyPageView,
55
WorkspaceProxyPageViewProps,
@@ -17,12 +17,23 @@ const Template: Story<WorkspaceProxyPageViewProps> = (
1717
args: WorkspaceProxyPageViewProps,
1818
) => <WorkspaceProxyPageView {...args} />
1919

20+
export const PrimarySelected = Template.bind({})
21+
PrimarySelected.args = {
22+
isLoading: false,
23+
hasLoaded: true,
24+
proxies: MockRegions,
25+
preferredProxy: MockPrimaryRegion,
26+
onSelect: () => {
27+
return Promise.resolve()
28+
},
29+
}
30+
2031
export const Example = Template.bind({})
2132
Example.args = {
2233
isLoading: false,
2334
hasLoaded: true,
2435
proxies: MockRegions,
25-
preferredProxy: MockRegions[0],
36+
preferredProxy: MockHealthyWildRegion,
2637
onSelect: () => {
2738
return Promise.resolve()
2839
},

0 commit comments

Comments
 (0)