Skip to content

Commit

Permalink
fix(desktop): remove full screen health check warnings. This was caus…
Browse files Browse the repository at this point in the history
…ing issues in scenarios where the availability fluctuates
  • Loading branch information
pascalbreuninger committed Feb 7, 2025
1 parent 89a05b9 commit 790e08d
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions desktop/src/views/Pro/ProInstance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useProContext, useProInstances } from "@/contexts"
import { DevPodIcon } from "@/icons"
import emptyWorkspacesImage from "@/images/empty_workspaces.svg"
import { useConnectionStatus, useReLoginProModal } from "@/lib"
import { Box, Button, Container, HStack, Heading, Image, Text, VStack } from "@chakra-ui/react"
import { Button, Container, Heading, Image, Text, VStack } from "@chakra-ui/react"
import { useMemo } from "react"
import { Outlet } from "react-router-dom"

Expand Down Expand Up @@ -40,29 +40,6 @@ export function ProInstance() {
)
}

if (connectionStatus.state === "disconnected") {
return (
<Container maxW="container.lg" h="full">
<VStack align="center" mt="-40" justify="center" w="full" h="full">
<HStack gap="4">
<Box boxSize="4" bg={"red.400"} rounded="full" />
<Heading fontWeight="thin" color="gray.600">
Unable to connect to platform
</Heading>
</HStack>
<Text textAlign="center">
DevPod can not connect to your platform at{" "}
<Text display="inline" fontWeight="semibold">
{host}
</Text>
.<br />
Please contact your administrator.
</Text>
</VStack>
</Container>
)
}

return (
<>
<Outlet />
Expand Down

0 comments on commit 790e08d

Please sign in to comment.