Bugfixes (#105)
* Make KYC field mandatory * Fix tip jar names * adjust tip jar language
This commit is contained in:
parent
b02e14a42f
commit
7e7650eeae
|
@ -74,7 +74,7 @@ export default class TipJarAddress extends React.Component<Props, State> {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Form className="RefundAddress" layout="vertical" onSubmit={this.handleSubmit}>
|
<Form className="RefundAddress" layout="vertical" onSubmit={this.handleSubmit}>
|
||||||
<Form.Item label="Tip jar address" validateStatus={status} help={help}>
|
<Form.Item label="Tip address" validateStatus={status} help={help}>
|
||||||
<Input
|
<Input
|
||||||
value={tipJarAddress || ''}
|
value={tipJarAddress || ''}
|
||||||
placeholder="Z address"
|
placeholder="Z address"
|
||||||
|
@ -97,7 +97,7 @@ export default class TipJarAddress extends React.Component<Props, State> {
|
||||||
loading={isSaving}
|
loading={isSaving}
|
||||||
block
|
block
|
||||||
>
|
>
|
||||||
Change tip jar address
|
Change tip address
|
||||||
</Button>
|
</Button>
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
|
|
|
@ -64,10 +64,10 @@ export default class TipJarViewKey extends React.Component<Props, State> {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Form className="RefundAddress" layout="vertical" onSubmit={this.handleSubmit}>
|
<Form className="RefundAddress" layout="vertical" onSubmit={this.handleSubmit}>
|
||||||
<Form.Item label="Tip jar view key">
|
<Form.Item label="Tip view key">
|
||||||
<Input
|
<Input
|
||||||
value={tipJarViewKey || ''}
|
value={tipJarViewKey || ''}
|
||||||
placeholder="A view key for your tip jar address (optional)"
|
placeholder="A view key for your tip address (optional)"
|
||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
disabled={viewKeyDisabled || isFetching || isSaving || errorFetching}
|
disabled={viewKeyDisabled || isFetching || isSaving || errorFetching}
|
||||||
/>
|
/>
|
||||||
|
@ -87,7 +87,7 @@ export default class TipJarViewKey extends React.Component<Props, State> {
|
||||||
loading={isSaving}
|
loading={isSaving}
|
||||||
block
|
block
|
||||||
>
|
>
|
||||||
Change tip jar view key
|
Change tip view key
|
||||||
</Button>
|
</Button>
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
|
|
|
@ -35,7 +35,7 @@ interface CreateFormErrors {
|
||||||
|
|
||||||
export type KeyOfForm = keyof CreateFormErrors;
|
export type KeyOfForm = keyof CreateFormErrors;
|
||||||
export const FIELD_NAME_MAP: { [key in KeyOfForm]: string } = {
|
export const FIELD_NAME_MAP: { [key in KeyOfForm]: string } = {
|
||||||
rfpOptIn: 'RFP KYC',
|
rfpOptIn: 'KYC',
|
||||||
title: 'Title',
|
title: 'Title',
|
||||||
brief: 'Brief',
|
brief: 'Brief',
|
||||||
target: 'Target amount',
|
target: 'Target amount',
|
||||||
|
@ -61,7 +61,6 @@ export function getCreateErrors(
|
||||||
target,
|
target,
|
||||||
payoutAddress,
|
payoutAddress,
|
||||||
tipJarAddress,
|
tipJarAddress,
|
||||||
rfp,
|
|
||||||
rfpOptIn,
|
rfpOptIn,
|
||||||
brief,
|
brief,
|
||||||
} = form;
|
} = form;
|
||||||
|
@ -83,7 +82,7 @@ export function getCreateErrors(
|
||||||
}
|
}
|
||||||
|
|
||||||
// RFP opt-in
|
// RFP opt-in
|
||||||
if (rfp && (rfp.bounty || rfp.matching) && rfpOptIn === null) {
|
if (rfpOptIn === null) {
|
||||||
errors.rfpOptIn = 'Please accept or decline KYC';
|
errors.rfpOptIn = 'Please accept or decline KYC';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue