Skip to content

Commit ee67556

Browse files
committed
Add warning for multi account view
1 parent 37b2aaf commit ee67556

File tree

5 files changed

+101
-4
lines changed

5 files changed

+101
-4
lines changed
9.74 KB
Loading
-4 KB
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Loading

public/tailwind.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,15 @@ video {
13051305
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
13061306
}
13071307

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+
13081317
.bg-opacity-25 {
13091318
--tw-bg-opacity: 0.25;
13101319
}
@@ -1377,6 +1386,10 @@ video {
13771386
padding: 4px;
13781387
}
13791388

1389+
.p-6 {
1390+
padding: 1.5rem;
1391+
}
1392+
13801393
.\!py-4 {
13811394
padding-top: 1rem !important;
13821395
padding-bottom: 1rem !important;
@@ -1708,6 +1721,23 @@ video {
17081721
color: rgb(255 255 255 / 0.8);
17091722
}
17101723

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: 7B4511;
1739+
}
1740+
17111741
.opacity-0 {
17121742
opacity: 0;
17131743
}
@@ -2171,6 +2201,10 @@ video {
21712201
align-items: center;
21722202
}
21732203

2204+
.md\:justify-start {
2205+
justify-content: flex-start;
2206+
}
2207+
21742208
.md\:gap-6 {
21752209
gap: 1.5rem;
21762210
}
@@ -2189,6 +2223,18 @@ video {
21892223
padding-bottom: 1.5rem;
21902224
}
21912225

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+
21922238
.md\:text-2xl {
21932239
font-size: 1.5rem;
21942240
line-height: 2rem;

src/components/creatorsStaking/index.tsx

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,59 @@
1+
import Image from 'next/image'
2+
import { useIsMulti } from '../providers/MyExtensionAccountsContext'
13
import { StakingContextWrapper } from '../staking/collators/StakingContext'
24
import Banner from './Banner'
35
import CreatorDashboard from './CreatorDashboard'
46
import CreatorsSection from './Creators'
57
import MyStakingSection from './MyStaking'
8+
import clsx from 'clsx'
69

710
const CreatorsStaking = () => {
11+
const isMulti = useIsMulti()
12+
813
return (
914
<div className='flex flex-col gap-10'>
1015
<StakingContextWrapper network='subsocial'>
1116
<Banner />
1217

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+
)}
1757
</StakingContextWrapper>
1858
</div>
1959
)

0 commit comments

Comments
 (0)