1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

output form titles

This commit is contained in:
Matthias Kretschmann 2021-02-22 16:28:56 +01:00
parent 82a12a915d
commit 41fd894ce6
Signed by: m
GPG Key ID: 606EEEF3C479A91F
6 changed files with 11 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{
"title": "Publish",
"title": "Publish an Alorithm",
"data": [
{
"name": "name",

View File

@ -1,5 +1,5 @@
{
"title": "Publish",
"title": "Publish a Data Set",
"data": [
{
"name": "name",

View File

@ -7,6 +7,7 @@ import Input from '../../atoms/Input'
import Button from '../../atoms/Button'
import { FormContent, FormFieldProps } from '../../../@types/Form'
import { MetadataPublishFormAlgorithm } from '../../../@types/MetaData'
import stylesIndex from './index.module.css'
const query = graphql`
query {
@ -124,6 +125,7 @@ export default function FormPublish(): ReactElement {
// do we need this?
onChange={() => status === 'empty' && setStatus(null)}
>
<h2 className={stylesIndex.formTitle}>{content.title}</h2>
{content.data.map((field: FormFieldProps) => (
<Field
key={field.name}

View File

@ -7,6 +7,7 @@ import Input from '../../atoms/Input'
import Button from '../../atoms/Button'
import { FormContent, FormFieldProps } from '../../../@types/Form'
import { MetadataPublishFormDataset } from '../../../@types/MetaData'
import stylesIndex from './index.module.css'
const query = graphql`
query {
@ -82,6 +83,7 @@ export default function FormPublish(): ReactElement {
// do we need this?
onChange={() => status === 'empty' && setStatus(null)}
>
<h2 className={stylesIndex.formTitle}>{content.title}</h2>
{content.data.map((field: FormFieldProps) => (
<Field
key={field.name}

View File

@ -26,3 +26,7 @@ div.alert {
top: calc(var(--spacer) / 2);
}
}
.formTitle {
font-size: var(--font-size-h4);
}

View File

@ -39,9 +39,7 @@ function TabContent({
values
}: {
publishType: MetadataMain['type']
values:
| Partial<MetadataPublishFormDataset>
| Partial<MetadataPublishFormAlgorithm>
values: Partial<MetadataPublishFormAlgorithm | MetadataPublishFormDataset>
}) {
return (
<article className={styles.grid}>