@@ -137,7 +137,7 @@ export function SerialConsolePage() {
137
137
</ Link >
138
138
139
139
< div className = "gutter relative w-full shrink grow overflow-hidden" >
140
- { connectionStatus = == 'connecting' && < ConnectingSkeleton /> }
140
+ { connectionStatus ! == 'connecting' && < ConnectingSkeleton /> }
141
141
{ connectionStatus === 'error' && < ErrorSkeleton /> }
142
142
{ connectionStatus === 'closed' && ! canConnect && (
143
143
< CannotConnect instanceState = { instanceData . runState } />
@@ -197,34 +197,19 @@ function SerialSkeleton({
197
197
)
198
198
}
199
199
200
- function InstanceLink ( ) {
201
- const { instance, project } = useInstanceSelector ( )
202
- return (
203
- < Link
204
- className = "text-sans-xl text-accent-secondary hover:text-accent"
205
- to = { pb . instance ( { project, instance } ) }
206
- >
207
- { instance }
208
- </ Link >
209
- )
210
- }
211
-
212
200
const ConnectingSkeleton = ( ) => (
213
201
< SerialSkeleton connecting >
214
202
< Spinner size = "lg" />
215
203
< div className = "mt-4 text-center" >
216
- < p className = "text-sans-xl" > Connecting to</ p >
217
- < InstanceLink />
204
+ < p className = "text-sans-xl" > Connecting to serial console</ p >
218
205
</ div >
219
206
</ SerialSkeleton >
220
207
)
221
208
222
209
const CannotConnect = ( { instanceState } : { instanceState : InstanceState } ) => (
223
210
< SerialSkeleton >
224
211
< p className = "flex items-center justify-center text-sans-xl" >
225
- < span >
226
- Instance < InstanceLink /> is
227
- </ span >
212
+ < span > The instance is</ span >
228
213
< InstanceStatusBadge className = "ml-1" status = { instanceState } />
229
214
</ p >
230
215
< p className = "mt-2 text-center text-secondary" >
0 commit comments