|
@@ -5,6 +5,7 @@ import {
|
|
Switch,
|
|
Switch,
|
|
FormControlLabel,
|
|
FormControlLabel,
|
|
Checkbox,
|
|
Checkbox,
|
|
|
|
+ Typography,
|
|
} from '@mui/material';
|
|
} from '@mui/material';
|
|
import { FC, Fragment, ReactElement, useMemo, useContext } from 'react';
|
|
import { FC, Fragment, ReactElement, useMemo, useContext } from 'react';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { useTranslation } from 'react-i18next';
|
|
@@ -49,7 +50,9 @@ const useStyles = makeStyles((theme: Theme) => ({
|
|
overflowY: 'auto',
|
|
overflowY: 'auto',
|
|
},
|
|
},
|
|
title: {
|
|
title: {
|
|
- marginTop: theme.spacing(2),
|
|
|
|
|
|
+ fontSize: 14,
|
|
|
|
+ marginTop: theme.spacing(1),
|
|
|
|
+ marginBottom: theme.spacing(1),
|
|
'& button': {
|
|
'& button': {
|
|
position: 'relative',
|
|
position: 'relative',
|
|
top: '-1px',
|
|
top: '-1px',
|
|
@@ -991,9 +994,9 @@ const CreateFields: FC<CreateFieldsProps> = ({
|
|
|
|
|
|
return (
|
|
return (
|
|
<>
|
|
<>
|
|
- <h4 className={classes.title}>
|
|
|
|
|
|
+ <Typography variant="h4" className={classes.title}>
|
|
{`${collectionTrans('idAndVectorFields')}(${requiredFields.length})`}
|
|
{`${collectionTrans('idAndVectorFields')}(${requiredFields.length})`}
|
|
- </h4>
|
|
|
|
|
|
+ </Typography>
|
|
{requiredFields.map((field, index) => (
|
|
{requiredFields.map((field, index) => (
|
|
<Fragment key={field.id}>
|
|
<Fragment key={field.id}>
|
|
{generateRequiredFieldRow(
|
|
{generateRequiredFieldRow(
|
|
@@ -1005,7 +1008,7 @@ const CreateFields: FC<CreateFieldsProps> = ({
|
|
)}
|
|
)}
|
|
</Fragment>
|
|
</Fragment>
|
|
))}
|
|
))}
|
|
- <h4 className={classes.title}>
|
|
|
|
|
|
+ <Typography variant="h4" className={classes.title}>
|
|
{`${collectionTrans('scalarFields')}(${scalarFields.length})`}
|
|
{`${collectionTrans('scalarFields')}(${scalarFields.length})`}
|
|
<IconButton
|
|
<IconButton
|
|
onClick={() => {
|
|
onClick={() => {
|
|
@@ -1017,7 +1020,7 @@ const CreateFields: FC<CreateFieldsProps> = ({
|
|
>
|
|
>
|
|
<AddIcon />
|
|
<AddIcon />
|
|
</IconButton>
|
|
</IconButton>
|
|
- </h4>
|
|
|
|
|
|
+ </Typography>
|
|
<div className={classes.scalarFieldsWrapper}>
|
|
<div className={classes.scalarFieldsWrapper}>
|
|
{scalarFields.map((field, index) => (
|
|
{scalarFields.map((field, index) => (
|
|
<Fragment key={field.id}>
|
|
<Fragment key={field.id}>
|