@@ -23,10 +23,39 @@ import { usePnkFaucetWithdrewAlready, prepareWritePnkFaucet, usePnkBalanceOf } f
23
23
24
24
const Container = styled . div `` ;
25
25
26
+ const CourtHeader = styled . h1 `
27
+ display: flex;
28
+ flex-direction: row;
29
+ justify-content: space-between;
30
+ gap: 24px;
31
+ flex-wrap: wrap;
32
+ ` ;
33
+
34
+ const CourtInfo = styled . div `
35
+ display: flex:
36
+ flex-direction: column;
37
+ gap: 16px;
38
+
39
+ ${ landscapeStyle (
40
+ ( ) => css `
41
+ gap: 32px;
42
+ `
43
+ ) } ;
44
+ ` ;
45
+
26
46
const ButtonContainer = styled . div `
27
47
display: flex;
28
48
flex-wrap: wrap;
29
- justify-content: space-between;
49
+ flex-direction: column;
50
+ align-items: flex-start;
51
+ gap: 16px;
52
+
53
+ ${ landscapeStyle (
54
+ ( ) => css `
55
+ align-items: flex-end;
56
+ gap: 32px;
57
+ `
58
+ ) } ;
30
59
` ;
31
60
32
61
const StyledCard = styled ( Card ) `
@@ -38,26 +67,13 @@ const StyledCard = styled(Card)`
38
67
` ;
39
68
40
69
const StyledBreadcrumb = styled ( Breadcrumb ) `
41
- margin-bottom: 12px;
42
70
display: flex;
43
- align-items: flex-start;
71
+ margin-top: 12px;
72
+ align-items: center;
44
73
` ;
45
74
46
75
const StyledBreadcrumbSkeleton = styled . div `
47
- margin-bottom: 12px;
48
- ` ;
49
-
50
- const CourtHeader = styled . h1 `
51
- display: flex;
52
- flex-direction: column;
53
- gap: 16px;
54
-
55
- ${ landscapeStyle (
56
- ( ) => css `
57
- flex-direction: row;
58
- justify-content: space-between;
59
- `
60
- ) }
76
+ margin-top: 12px;
61
77
` ;
62
78
63
79
const CourtDetails : React . FC = ( ) => {
@@ -108,31 +124,33 @@ const CourtDetails: React.FC = () => {
108
124
< Container >
109
125
< StyledCard >
110
126
< CourtHeader >
111
- { policy ? policy . name : < StyledSkeleton width = { 200 } /> }
112
- < HowItWorks
113
- isMiniGuideOpen = { isStakingMiniGuideOpen }
114
- toggleMiniGuide = { toggleStakingMiniGuide }
115
- MiniGuideComponent = { Staking }
116
- />
117
- </ CourtHeader >
118
- < ButtonContainer >
119
- { items . length > 1 ? (
120
- < StyledBreadcrumb items = { items } />
121
- ) : (
122
- < StyledBreadcrumbSkeleton >
123
- < StyledSkeleton width = { 100 } />
124
- </ StyledBreadcrumbSkeleton >
125
- ) }
126
- { chain ?. id === DEFAULT_CHAIN && ! claimed && (
127
- < Button
128
- variant = "primary"
129
- text = { faucetCheck ? "Claim PNK" : "Empty Faucet" }
130
- onClick = { handleRequest }
131
- isLoading = { isSending }
132
- disabled = { isSending || claimed || ! faucetCheck }
127
+ < CourtInfo >
128
+ { policy ? policy . name : < StyledSkeleton width = { 200 } /> }
129
+ { items . length > 1 ? (
130
+ < StyledBreadcrumb items = { items } />
131
+ ) : (
132
+ < StyledBreadcrumbSkeleton >
133
+ < StyledSkeleton width = { 100 } />
134
+ </ StyledBreadcrumbSkeleton >
135
+ ) }
136
+ </ CourtInfo >
137
+ < ButtonContainer >
138
+ < HowItWorks
139
+ isMiniGuideOpen = { isStakingMiniGuideOpen }
140
+ toggleMiniGuide = { toggleStakingMiniGuide }
141
+ MiniGuideComponent = { Staking }
133
142
/>
134
- ) }
135
- </ ButtonContainer >
143
+ { chain ?. id === DEFAULT_CHAIN && ! claimed && (
144
+ < Button
145
+ variant = "primary"
146
+ text = { faucetCheck ? "Claim PNK" : "Empty Faucet" }
147
+ onClick = { handleRequest }
148
+ isLoading = { isSending }
149
+ disabled = { isSending || claimed || ! faucetCheck }
150
+ />
151
+ ) }
152
+ </ ButtonContainer >
153
+ </ CourtHeader >
136
154
< hr />
137
155
< Stats />
138
156
< hr />
0 commit comments