@@ -2,13 +2,15 @@ import React, { Suspense } from "react";
2
2
import { FormattedMessage } from "react-intl" ;
3
3
import { useNavigate } from "react-router-dom" ;
4
4
5
- import { LoadingPage , MainPageWithScroll } from "components" ;
5
+ import { LoadingPage } from "components" ;
6
6
import { ConnectionOnboarding } from "components/connection/ConnectionOnboarding" ;
7
7
import { HeadTitle } from "components/HeadTitle" ;
8
+ import { Box } from "components/ui/Box" ;
8
9
import { Button } from "components/ui/Button" ;
9
10
import { FlexContainer , FlexItem } from "components/ui/Flex" ;
10
11
import { Heading } from "components/ui/Heading" ;
11
12
import { PageHeader } from "components/ui/PageHeader" ;
13
+ import { ScrollParent } from "components/ui/ScrollParent" ;
12
14
13
15
import { useCurrentWorkspace , useCurrentWorkspaceState } from "core/api" ;
14
16
import { PageTrackingCodes , useTrackPage } from "core/services/analytics" ;
@@ -36,43 +38,44 @@ export const AllConnectionsPage: React.FC = () => {
36
38
< >
37
39
< HeadTitle titles = { [ { id : "sidebar.connections" } ] } />
38
40
{ hasConnections ? (
39
- < MainPageWithScroll
40
- softScrollEdge = { false }
41
- pageTitle = {
42
- < PageHeader
43
- leftComponent = {
44
- < FlexContainer direction = "column" >
45
- < FlexItem >
46
- < Heading as = "h1" size = "lg" >
47
- < FormattedMessage id = "sidebar.connections" />
48
- </ Heading >
49
- </ FlexItem >
50
- < FlexItem >
51
- < Suspense fallback = { null } >
52
- < ConnectionsSummary />
53
- </ Suspense >
54
- </ FlexItem >
55
- </ FlexContainer >
56
- }
57
- endComponent = {
58
- < FlexItem className = { styles . alignSelfStart } >
59
- < Button
60
- disabled = { ! canCreateConnection }
61
- icon = "plus"
62
- variant = "primary"
63
- size = "sm"
64
- onClick = { ( ) => onCreateClick ( ) }
65
- data-testid = "new-connection-button"
66
- >
67
- < FormattedMessage id = "connection.newConnection" />
68
- </ Button >
41
+ < div className = { styles . container } >
42
+ < PageHeader
43
+ className = { styles . pageHeader }
44
+ leftComponent = {
45
+ < FlexContainer direction = "column" >
46
+ < FlexItem >
47
+ < Heading as = "h1" size = "lg" >
48
+ < FormattedMessage id = "sidebar.connections" />
49
+ </ Heading >
69
50
</ FlexItem >
70
- }
71
- />
72
- }
73
- >
74
- < ConnectionsListCard />
75
- </ MainPageWithScroll >
51
+ < FlexItem >
52
+ < Suspense fallback = { null } >
53
+ < ConnectionsSummary />
54
+ </ Suspense >
55
+ </ FlexItem >
56
+ </ FlexContainer >
57
+ }
58
+ endComponent = {
59
+ < FlexItem className = { styles . alignSelfStart } >
60
+ < Button
61
+ disabled = { ! canCreateConnection }
62
+ icon = "plus"
63
+ variant = "primary"
64
+ size = "sm"
65
+ onClick = { ( ) => onCreateClick ( ) }
66
+ data-testid = "new-connection-button"
67
+ >
68
+ < FormattedMessage id = "connection.newConnection" />
69
+ </ Button >
70
+ </ FlexItem >
71
+ }
72
+ />
73
+ < ScrollParent props = { { className : styles . pageBody } } >
74
+ < Box m = "xl" >
75
+ < ConnectionsListCard />
76
+ </ Box >
77
+ </ ScrollParent >
78
+ </ div >
76
79
) : (
77
80
< ConnectionOnboarding onCreate = { onCreateClick } />
78
81
) }
0 commit comments