Skip to content

Commit 29944a3

Browse files
authored
blockchain screen text updates (#409)
1 parent a7e473d commit 29944a3

File tree

5 files changed

+19
-21
lines changed

5 files changed

+19
-21
lines changed

src/components/Modal/Modal.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ let Modal = (({
5858
<div style={{textAlign: buttonsInCenter ? 'center' : 'right'}} className={styles.footer}>
5959
{showCancel ? <Button
6060
value={cancelText}
61-
onClick={onCancel}
61+
onClick={!progress ? onCancel : null}
6262
disabled={!canCancel} /> : null}
6363
<Button
6464
primary={true}
6565
value={confirmText}
6666
color={buttonColors[type]}
6767
disabled={!!disabled}
68-
onClick={onConfirm}
68+
onClick={!progress ? onConfirm : null}
6969
progress={progress} />
7070
{
7171
showContinue === true ?

src/dashboard/BlockchainPage/BlockChainPage.react.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class BlockChainPage extends DashboardView {
160160
return (
161161
<div>
162162
<div className={styles.headerRow}>
163-
<div className={styles.className}>Class</div>
163+
<div className={styles.className}>Classes in Blockchain</div>
164164
<div></div>
165165
</div>
166166
{this.state.blockChainClasses.map((name, idx) => (
@@ -187,11 +187,11 @@ class BlockChainPage extends DashboardView {
187187
const classes = this.state.classes.filter(name => !this.state.blockChainClasses.includes(name));
188188

189189
return (
190-
<div className={styles.content}>
190+
<div>
191191
<div className={styles.fieldset}>
192192
<div className={styles.legendText}>Blockchain Data Storage</div>
193193
<div className={styles.descText}>
194-
Save your App’s data on the Blockchain Network of your choice
194+
Save your App’s data on the Blockchain Network of your choice.
195195
<br/> NOTE: This feature is on the alpha version.
196196
</div>
197197
</div>
@@ -200,7 +200,7 @@ class BlockChainPage extends DashboardView {
200200
description="You can only connect to a private Ethereum compatible network in this alpha version. Use this network for development purposes at no cost."
201201
>
202202
<Field
203-
label={<Label text="BlockChain Network" />}
203+
label={<Label text="Blockchain Network" />}
204204
input={
205205
<TextInput
206206
value="Back4App ETH Development"
@@ -210,7 +210,7 @@ class BlockChainPage extends DashboardView {
210210
}
211211
/>
212212
<Field
213-
label={<Label text="Balance ETH(Development)" />}
213+
label={<Label text="Balance (development eth)" />}
214214
input={
215215
this.state.appBalanceLoading ? (
216216
<div className={styles.spinnerWrapper}>
@@ -228,10 +228,10 @@ class BlockChainPage extends DashboardView {
228228
</Fieldset>
229229
<Fieldset
230230
legend="Classes in Blockchain"
231-
description="After selecting a class, any object created on these classes will be automatically replicated to the Blockchain. Please note that two new fields will be added to these classes’ objects (blockchainStatus and blockchainResult), and it is not permitted to update nor modify blockchain objects."
231+
description="Replicate new objects to the Blockchain by selecting their classes below. This operation will add two new fields to these classes (blockchainStatus and blockchainResult), and it is not allowed to update nor modify blockchain objects."
232232
>
233233
<Field
234-
label={<Label text="Add new Classes at Blockchain" />}
234+
label={<Label text="Add a new class to Blockchain" />}
235235
input={
236236
<Dropdown
237237
placeHolder="Select a class"
@@ -295,7 +295,7 @@ class BlockChainPage extends DashboardView {
295295
}
296296

297297
return (
298-
<div>
298+
<div className={styles.content}>
299299
<LoaderContainer loading={this.state.loading}>
300300
{this.renderForm()}
301301
{extra}

src/dashboard/BlockchainPage/BlockChainPage.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
padding: 24px;
4040

4141
& h4 {
42-
margin-bottom: 24px;
4342
color: #000000DE;
4443
font-weight: 600;
4544
}
4645

4746
& span {
47+
margin-top: 24px;
4848
font-size: 12px;
4949
color: #00000099;
5050
}

src/dashboard/BlockchainPage/MoveToBlockchainModal.react.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,21 @@ import React from 'react';
1313
import styles from './BlockChainPage.scss';
1414

1515
export default class MoveToBlockchainModal extends React.Component {
16-
1716
render() {
1817
let content = (
1918
<div>
2019
<div className={styles.modalHeadContent}>
21-
<h4>Do you really want to move these classes to Blockchain? This action could take a while.</h4>
22-
<span>*This action can only be performed by the App owner.</span>
20+
<h4>Do you really want to add this class to the Blockchain?</h4>
2321
</div>
2422
</div>
2523
);
2624

2725
return (
2826
<Modal
2927
type={Modal.Types.INFO}
30-
title='Move class to Blockchain?'
31-
subtitle='This action will move the selected class to Blockchain, and it could take a while.'
32-
confirmText='Move selected class to Blockchain'
28+
title='Add class to Blockchain?'
29+
subtitle='This action will add the selected class to the Blockchain and it can take a while to complete.'
30+
confirmText='Add selected class to blockchain'
3331
onCancel={this.props.onCancel}
3432
onConfirm={this.props.onConfirm}
3533
progress={this.props.progress}

src/dashboard/BlockchainPage/RemoveFromBlockchainModal.react.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ export default class RemoveFromBlockchainModal extends React.Component {
2828
let content = (
2929
<div>
3030
<div className={styles.modalHeadContent}>
31-
<h4>Do you really want to delete this class from Back4App ETH Development?</h4>
31+
<h4>Do you really want to remove this class from Back4App ETH Development?</h4>
3232
</div>
3333
<Field
34-
label={<Label text='Type the classname' />}
34+
label={<Label text='Type the class name' />}
3535
input={
3636
<TextInput
37-
placeholder='Classname'
37+
placeholder='Class name'
3838
onChange={(name) => this.setState({ name })}
3939
/>
4040
}
@@ -47,7 +47,7 @@ export default class RemoveFromBlockchainModal extends React.Component {
4747
type={Modal.Types.DANGER}
4848
title='Remove class from blockchain'
4949
subtitle='This action will remove this class from Back4App ETH Development.'
50-
confirmText='Delete'
50+
confirmText='Remove'
5151
disabled={!this.valid()}
5252
onCancel={this.props.onCancel}
5353
onConfirm={this.props.onConfirm}

0 commit comments

Comments
 (0)