This commit is contained in:
Keith Grant
2019-07-11 16:13:13 -07:00
parent e3d67117e7
commit 761ed6dec0
6 changed files with 24 additions and 19 deletions

View File

@@ -21,7 +21,7 @@ function CredentialChip ({ credential, i18n, ...props }) {
<strong>{type}: </strong>
{credential.name}
</Chip>
)
);
}
CredentialChip.propTypes = {
credential: Credential.isRequired,

View File

@@ -26,7 +26,9 @@ const DetailValue = styled(({ fullWidth, ...props }) => (
`;
const Detail = ({ label, value, fullWidth }) => {
if (!value && typeof value !== 'number') { return null; }
if (!value && typeof value !== 'number') {
return null;
}
return (
<Fragment>
<DetailName component={TextListItemVariants.dt} fullWidth={fullWidth}>

View File

@@ -27,7 +27,8 @@ class JobListItem extends Component {
onChange={onSelect}
aria-labelledby={`check-action-${job.id}`}
/>
<DataListItemCells dataListCells={[
<DataListItemCells
dataListCells={[
<DataListCell key="divider">
<VerticalSeparator />
<span>

View File

@@ -23,7 +23,9 @@ export function jsonToYaml(jsonString) {
}
export function isJson(jsonString) {
if (typeof jsonString !== 'string') { return false; }
if (typeof jsonString !== 'string') {
return false;
}
let value;
try {
value = JSON.parse(jsonString);