From db846052d80097b2f4f872a81cd3d6928ae5f34b Mon Sep 17 00:00:00 2001 From: Cameron Koegel Date: Fri, 9 Sep 2022 12:02:19 -0400 Subject: [PATCH] classNames --- src/components/Fields/Extensions.tsx | 2 +- src/components/Fields/FieldContstraints.tsx | 2 +- src/components/Fields/FieldDetail.tsx | 3 ++- src/components/Fields/FieldDetails.tsx | 4 ++-- src/components/Fields/Pattern.tsx | 2 +- src/components/Responses/Response.tsx | 2 +- src/components/Responses/ResponseHeaders.tsx | 2 +- 7 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/Fields/Extensions.tsx b/src/components/Fields/Extensions.tsx index 887adfec..bac8d637 100644 --- a/src/components/Fields/Extensions.tsx +++ b/src/components/Fields/Extensions.tsx @@ -27,7 +27,7 @@ export class Extensions extends React.PureComponent { <> {options.showExtensions && Object.keys(exts).map(key => ( - + {key.substring(2)}: {' '} {typeof exts[key] === 'string' ? exts[key] : JSON.stringify(exts[key])} diff --git a/src/components/Fields/FieldContstraints.tsx b/src/components/Fields/FieldContstraints.tsx index c92e8f5c..7e5c831f 100644 --- a/src/components/Fields/FieldContstraints.tsx +++ b/src/components/Fields/FieldContstraints.tsx @@ -11,7 +11,7 @@ export class ConstraintsView extends React.PureComponent { return null; } return ( - + {' '} {this.props.constraints.map(constraint => ( {constraint} diff --git a/src/components/Fields/FieldDetail.tsx b/src/components/Fields/FieldDetail.tsx index 53fb89bf..b24619a8 100644 --- a/src/components/Fields/FieldDetail.tsx +++ b/src/components/Fields/FieldDetail.tsx @@ -16,7 +16,8 @@ function FieldDetailComponent({ value, label, raw }: FieldDetailProps) { return (
- {label} {stringifyValue} + {label} {' '} + {stringifyValue}
); } diff --git a/src/components/Fields/FieldDetails.tsx b/src/components/Fields/FieldDetails.tsx index 36a43d3e..a47a2dff 100644 --- a/src/components/Fields/FieldDetails.tsx +++ b/src/components/Fields/FieldDetails.tsx @@ -53,7 +53,7 @@ export const FieldDetailsComponent = observer((props: FieldProps) => { }, [field, showExamples]); return ( -
+
{schema.typePrefix} {schema.displayType} @@ -88,7 +88,7 @@ export const FieldDetailsComponent = observer((props: FieldProps) => { {isArrayType && schema.items && }
{deprecated && ( -
+
{l('deprecated')}
)} diff --git a/src/components/Fields/Pattern.tsx b/src/components/Fields/Pattern.tsx index 3b0c17ea..57d324e3 100644 --- a/src/components/Fields/Pattern.tsx +++ b/src/components/Fields/Pattern.tsx @@ -18,7 +18,7 @@ export function Pattern(props: { schema: SchemaModel }) { return ( <> - + {isPatternShown || pattern.length < MAX_PATTERN_LENGTH ? pattern : `${pattern.substr(0, MAX_PATTERN_LENGTH)}...`} diff --git a/src/components/Responses/Response.tsx b/src/components/Responses/Response.tsx index 117b8fb5..9fe82c39 100644 --- a/src/components/Responses/Response.tsx +++ b/src/components/Responses/Response.tsx @@ -28,7 +28,7 @@ export const ResponseView = observer(({ response }: ResponseViewProps): React.Re ); return ( -
+
response.toggle()} type={type} diff --git a/src/components/Responses/ResponseHeaders.tsx b/src/components/Responses/ResponseHeaders.tsx index 0e97e175..7da94a76 100644 --- a/src/components/Responses/ResponseHeaders.tsx +++ b/src/components/Responses/ResponseHeaders.tsx @@ -19,7 +19,7 @@ export class ResponseHeaders extends React.PureComponent { return ( Response Headers - + {mapWithLast(headers, (header, isLast) => ( ))}