Skip to content

Commit 19a1dc5

Browse files
authored
ensure error message remains centered (#5003)
1 parent 831b368 commit 19a1dc5

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

redisinsight/ui/src/components/connectivity-error/ConnectivityError.tsx

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import SuspenseLoader from 'uiSrc/components/main-router/components/SuspenseLoad
33

44
import { Col, FlexItem } from 'uiSrc/components/base/layout/flex'
55
import { PrimaryButton } from 'uiSrc/components/base/forms/buttons'
6-
import { Card } from 'uiSrc/components/base/layout'
76

87
export type ConnectivityErrorProps = {
98
onRetry?: () => void
@@ -16,20 +15,16 @@ const ConnectivityError = ({
1615
error,
1716
onRetry,
1817
}: ConnectivityErrorProps) => (
19-
<Col>
20-
<Card>
21-
<Col style={{ minHeight: '100vh' }} centered>
22-
{isLoading && <SuspenseLoader />}
23-
<Col centered gap="xl">
24-
<FlexItem data-testid="connectivity-error-message">{error}</FlexItem>
25-
{onRetry && (
26-
<FlexItem>
27-
<PrimaryButton onClick={onRetry}>Retry</PrimaryButton>
28-
</FlexItem>
29-
)}
30-
</Col>
31-
</Col>
32-
</Card>
18+
<Col centered>
19+
{isLoading && <SuspenseLoader />}
20+
<Col centered gap="xl">
21+
<FlexItem data-testid="connectivity-error-message">{error}</FlexItem>
22+
{onRetry && (
23+
<FlexItem>
24+
<PrimaryButton onClick={onRetry}>Retry</PrimaryButton>
25+
</FlexItem>
26+
)}
27+
</Col>
3328
</Col>
3429
)
3530

0 commit comments

Comments
 (0)