Skip to content

Commit 98bc659

Browse files
authored
Add links to 'About' and 'How To Use' Client Smart Contract (#196)
1 parent 3bb3191 commit 98bc659

File tree

2 files changed

+32
-10
lines changed

2 files changed

+32
-10
lines changed

src/components/Countdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ const Countdown: React.FC = () => {
5454
<div className="px-6">
5555
<p
5656
className="cursor-default"
57-
title="Using Client smart contract is available only for new applications. Select Contract as allocation type to start using it"
57+
title="Using Client Smart Contract is available only for new applications. Select Contract as allocation type to start using it"
5858
>
5959
Direct allocation of DataCap will be deprecated in{' '}
6060
<span className="whitespace-nowrap">
6161
{timeLeft.days}d {timeLeft.hours}h {timeLeft.minutes}m
6262
</span>{' '}
63-
(June 1). Start using the Client smart contract today.
63+
(June 1). Start using the Client Smart Contract today.
6464
</p>
6565
</div>
6666
)

src/components/DatacapAmountModel.tsx

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,11 @@ const DatacapAmountModal = ({
110110
].includes(application?.Lifecycle?.State) && (
111111
<div className="flex justify-items-center justify-between content-center items-center w-full">
112112
<FormControl>
113-
<FormLabel id="demo-controlled-radio-buttons-group">
114-
Allocation type
115-
</FormLabel>
113+
<div className="flex justify-between items-center">
114+
<FormLabel id="demo-controlled-radio-buttons-group">
115+
Allocation type
116+
</FormLabel>
117+
</div>
116118
<RadioGroup
117119
aria-labelledby="demo-controlled-radio-buttons-group"
118120
value={allocationConfig.allocationType}
@@ -124,11 +126,31 @@ const DatacapAmountModal = ({
124126
})
125127
}}
126128
>
127-
<FormControlLabel
128-
value={'contract'}
129-
control={<Radio />}
130-
label={'Contract'}
131-
/>
129+
<div className="flex items-center justify-between">
130+
<FormControlLabel
131+
value={'contract'}
132+
control={<Radio />}
133+
label={'Contract'}
134+
/>
135+
<div className="flex gap-4">
136+
<a
137+
href="https://www.fidl.tech/news/improvements-to-datacap-management"
138+
target="_blank"
139+
rel="noopener noreferrer"
140+
className="text-blue-500 hover:underline"
141+
>
142+
About
143+
</a>
144+
<a
145+
href="https://github.com/fidlabs/contract-metaallocator/blob/main/HowToUseClientSmartContract.md"
146+
target="_blank"
147+
rel="noopener noreferrer"
148+
className="text-blue-500 hover:underline"
149+
>
150+
How To Use
151+
</a>
152+
</div>
153+
</div>
132154
<FormControlLabel
133155
value="directly"
134156
control={<Radio />}

0 commit comments

Comments
 (0)