update prettyier

This commit is contained in:
John Mitchell
2020-02-19 14:58:20 -05:00
parent 42387166bf
commit 9253f16e36
3 changed files with 11 additions and 6 deletions

View File

@@ -23,7 +23,8 @@ const DetailValue = styled(({ fullWidth, isEncrypted, ...props }) => (
` `
grid-column: 2 / -1; grid-column: 2 / -1;
`} `}
${props => props.isEncrypted && ${props =>
props.isEncrypted &&
` `
text-transform: uppercase text-transform: uppercase
color: var(--pf-global--Color--400); color: var(--pf-global--Color--400);

View File

@@ -83,7 +83,14 @@ function CredentialDetail({ i18n, credential }) {
); );
} else if (inputs[id] === '$encrypted$') { } else if (inputs[id] === '$encrypted$') {
const isEncrypted = true; const isEncrypted = true;
detail = <Detail key={id} label={label} value={i18n._(t`Encrypted`)} isEncrypted={isEncrypted} />; detail = (
<Detail
key={id}
label={label}
value={i18n._(t`Encrypted`)}
isEncrypted={isEncrypted}
/>
);
} else { } else {
detail = <Detail key={id} label={label} value={inputs[id]} />; detail = <Detail key={id} label={label} value={inputs[id]} />;
} }

View File

@@ -365,10 +365,7 @@ function ProjectForm({ i18n, project, submitError, ...props }) {
onSubmit={handleSubmit} onSubmit={handleSubmit}
> >
{formik => ( {formik => (
<Form <Form autoComplete="off" onSubmit={formik.handleSubmit}>
autoComplete="off"
onSubmit={formik.handleSubmit}
>
<FormColumnLayout> <FormColumnLayout>
<ProjectFormFields <ProjectFormFields
project_base_dir={project_base_dir} project_base_dir={project_base_dir}