@@ -4,12 +4,9 @@ import TableCell from "@material-ui/core/TableCell"
4
4
import TableContainer from "@material-ui/core/TableContainer"
5
5
import TableHead from "@material-ui/core/TableHead"
6
6
import TableRow from "@material-ui/core/TableRow"
7
- import { useMachine } from "@xstate/react"
8
7
import {
9
- Badges ,
10
8
DisabledBadge ,
11
9
EnabledBadge ,
12
- EnterpriseBadge ,
13
10
} from "components/DeploySettingsLayout/Badges"
14
11
import { useDeploySettings } from "components/DeploySettingsLayout/DeploySettingsLayout"
15
12
import { Header } from "components/DeploySettingsLayout/Header"
@@ -18,14 +15,11 @@ import {
18
15
OptionName ,
19
16
OptionValue ,
20
17
} from "components/DeploySettingsLayout/Option"
21
- import { ReplicasTable } from "components/ReplicasTable/ReplicasTable"
22
18
import { Stack } from "components/Stack/Stack"
23
19
import React from "react"
24
- import { highAvailabilityMachine } from "xServices/deploymentFlags/highAvailabilityMachine"
25
20
26
21
const NetworkSettingsPage : React . FC = ( ) => {
27
22
const { deploymentFlags } = useDeploySettings ( )
28
- const [ state ] = useMachine ( highAvailabilityMachine )
29
23
30
24
return (
31
25
< Stack direction = "column" spacing = { 6 } >
@@ -120,26 +114,6 @@ const NetworkSettingsPage: React.FC = () => {
120
114
</ Table >
121
115
</ TableContainer >
122
116
</ div >
123
-
124
- < div >
125
- < Header
126
- title = "High Availability"
127
- secondary
128
- description = "Deploy Coder multi regionally for high availability. Only active if more than one replica exists."
129
- docsHref = "https://coder.com/docs/coder-oss/latest/admin/auth#openid-connect-with-google"
130
- />
131
-
132
- < Badges >
133
- { deploymentFlags . derp_server_relay_address . value ? (
134
- < EnabledBadge />
135
- ) : (
136
- < DisabledBadge />
137
- ) }
138
- < EnterpriseBadge />
139
- </ Badges >
140
-
141
- < ReplicasTable replicas = { state . context . replicas || [ ] } />
142
- </ div >
143
117
</ Stack >
144
118
)
145
119
}
0 commit comments