mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
hack in terms link, copy change
This commit is contained in:
parent
b64e4ff5dc
commit
0a9f9ec693
@ -75,7 +75,7 @@
|
|||||||
"name": "termsAndConditions",
|
"name": "termsAndConditions",
|
||||||
"label": "Terms & Conditions",
|
"label": "Terms & Conditions",
|
||||||
"type": "checkbox",
|
"type": "checkbox",
|
||||||
"options": ["I agree to these Terms and Conditions"],
|
"options": ["I agree to the Terms and Conditions"],
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
6
src/components/Publish/Metadata/index.module.css
Normal file
6
src/components/Publish/Metadata/index.module.css
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.termsLink {
|
||||||
|
position: relative;
|
||||||
|
font-size: var(--font-size-small);
|
||||||
|
margin-left: 1.75rem;
|
||||||
|
top: -3.2rem;
|
||||||
|
}
|
@ -7,6 +7,7 @@ import { FormPublishData } from '../_types'
|
|||||||
import { getFieldContent } from '../_utils'
|
import { getFieldContent } from '../_utils'
|
||||||
import IconDataset from '@images/dataset.svg'
|
import IconDataset from '@images/dataset.svg'
|
||||||
import IconAlgorithm from '@images/algorithm.svg'
|
import IconAlgorithm from '@images/algorithm.svg'
|
||||||
|
import styles from './index.module.css'
|
||||||
|
|
||||||
const assetTypeOptionsTitles = getFieldContent(
|
const assetTypeOptionsTitles = getFieldContent(
|
||||||
'type',
|
'type',
|
||||||
@ -123,6 +124,14 @@ export default function MetadataFields(): ReactElement {
|
|||||||
component={Input}
|
component={Input}
|
||||||
name="metadata.termsAndConditions"
|
name="metadata.termsAndConditions"
|
||||||
/>
|
/>
|
||||||
|
<a
|
||||||
|
className={styles.termsLink}
|
||||||
|
href="/terms"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
View Terms and Conditions
|
||||||
|
</a>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,9 @@ const validationMetadata = {
|
|||||||
.required('Required'),
|
.required('Required'),
|
||||||
author: Yup.string().required('Required'),
|
author: Yup.string().required('Required'),
|
||||||
tags: Yup.string().nullable(),
|
tags: Yup.string().nullable(),
|
||||||
termsAndConditions: Yup.boolean().required('Required').isTrue()
|
termsAndConditions: Yup.boolean()
|
||||||
|
.required('Required')
|
||||||
|
.isTrue('Please agree to the Terms and Conditions.')
|
||||||
}
|
}
|
||||||
|
|
||||||
const validationService = {
|
const validationService = {
|
||||||
|
Loading…
Reference in New Issue
Block a user