File tree Expand file tree Collapse file tree 5 files changed +101
-4
lines changed Expand file tree Collapse file tree 5 files changed +101
-4
lines changed Original file line number Diff line number Diff line change @@ -1305,6 +1305,15 @@ video {
1305
1305
background-color : rgb (255 255 255 / var (--tw-bg-opacity ));
1306
1306
}
1307
1307
1308
+ .bg-\[\] {
1309
+ background-color : ;
1310
+ }
1311
+
1312
+ .bg-\[\#FEFCE5\] {
1313
+ --tw-bg-opacity : 1 ;
1314
+ background-color : rgb (254 252 229 / var (--tw-bg-opacity ));
1315
+ }
1316
+
1308
1317
.bg-opacity-25 {
1309
1318
--tw-bg-opacity : 0.25 ;
1310
1319
}
@@ -1377,6 +1386,10 @@ video {
1377
1386
padding : 4px ;
1378
1387
}
1379
1388
1389
+ .p-6 {
1390
+ padding : 1.5rem ;
1391
+ }
1392
+
1380
1393
.\!py-4 {
1381
1394
padding-top : 1rem !important ;
1382
1395
padding-bottom : 1rem !important ;
@@ -1708,6 +1721,23 @@ video {
1708
1721
color : rgb (255 255 255 / 0.8 );
1709
1722
}
1710
1723
1724
+ .text-\[\] {
1725
+ color : ;
1726
+ }
1727
+
1728
+ .text-\[\#\] {
1729
+ color : # ;
1730
+ }
1731
+
1732
+ .text-\[\#7B4511\] {
1733
+ --tw-text-opacity : 1 ;
1734
+ color : rgb (123 69 17 / var (--tw-text-opacity ));
1735
+ }
1736
+
1737
+ .text-\[7B4511\] {
1738
+ color : 7 B4511;
1739
+ }
1740
+
1711
1741
.opacity-0 {
1712
1742
opacity : 0 ;
1713
1743
}
@@ -2171,6 +2201,10 @@ video {
2171
2201
align-items : center;
2172
2202
}
2173
2203
2204
+ .md\:justify-start {
2205
+ justify-content : flex-start;
2206
+ }
2207
+
2174
2208
.md\:gap-6 {
2175
2209
gap : 1.5rem ;
2176
2210
}
@@ -2189,6 +2223,18 @@ video {
2189
2223
padding-bottom : 1.5rem ;
2190
2224
}
2191
2225
2226
+ .md\:text-left {
2227
+ text-align : left;
2228
+ }
2229
+
2230
+ .md\:text-center {
2231
+ text-align : center;
2232
+ }
2233
+
2234
+ .md\:text-start {
2235
+ text-align : start;
2236
+ }
2237
+
2192
2238
.md\:text-2xl {
2193
2239
font-size : 1.5rem ;
2194
2240
line-height : 2rem ;
Original file line number Diff line number Diff line change
1
+ import Image from 'next/image'
2
+ import { useIsMulti } from '../providers/MyExtensionAccountsContext'
1
3
import { StakingContextWrapper } from '../staking/collators/StakingContext'
2
4
import Banner from './Banner'
3
5
import CreatorDashboard from './CreatorDashboard'
4
6
import CreatorsSection from './Creators'
5
7
import MyStakingSection from './MyStaking'
8
+ import clsx from 'clsx'
6
9
7
10
const CreatorsStaking = ( ) => {
11
+ const isMulti = useIsMulti ( )
12
+
8
13
return (
9
14
< div className = 'flex flex-col gap-10' >
10
15
< StakingContextWrapper network = 'subsocial' >
11
16
< Banner />
12
17
13
- < CreatorDashboard />
14
- < MyStakingSection />
15
-
16
- < CreatorsSection />
18
+ { isMulti ? (
19
+ < div
20
+ className = { clsx (
21
+ 'flex items-center justify-between' ,
22
+ 'md:flex-row flex-col gap-6 bg-[#FEFCE5]' ,
23
+ 'p-6 rounded-[20px]'
24
+ ) }
25
+ >
26
+ < div className = 'flex items-start gap-6' >
27
+ < Image
28
+ src = '/images/creator-staking/warning.svg'
29
+ alt = ''
30
+ width = { 24 }
31
+ height = { 24 }
32
+ />
33
+ < div >
34
+ < div className = 'text-xl text-[#7B4511] font-semibold mb-4' >
35
+ Please choose an account
36
+ </ div >
37
+ < div className = 'text-base text-[#7B4511] font-normal' >
38
+ To manage your Creator Staking, select one of your accounts
39
+ from the dropdown
40
+ </ div >
41
+ </ div >
42
+ </ div >
43
+ < Image
44
+ src = { '/images/creator-staking/choose-account.png' }
45
+ alt = ''
46
+ height = { 240 }
47
+ width = { 315 }
48
+ />
49
+ </ div >
50
+ ) : (
51
+ < >
52
+ < CreatorDashboard />
53
+ < MyStakingSection />
54
+ < CreatorsSection />
55
+ </ >
56
+ ) }
17
57
</ StakingContextWrapper >
18
58
</ div >
19
59
)
You can’t perform that action at this time.
0 commit comments