Skip to content

Commit 6905200

Browse files
committed
feat: remove unused props
1 parent d7cdda7 commit 6905200

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/JsonSchemaViewer.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ export interface IJsonSchemaViewer {
1515
name?: string;
1616
dereferencedSchema?: string | ISchema;
1717
defaultExpandedDepth?: number;
18-
forApiDocs?: boolean;
1918
schemas: object;
2019
schema: string | ISchema;
2120
limitPropertyCount: number;
2221
hideRoot?: boolean;
2322
expanded?: boolean;
2423
emptyText?: string;
25-
emptyClass?: string;
2624
hideInheritedFrom?: boolean;
2725
}
2826

@@ -50,15 +48,14 @@ export class JsonSchemaViewer extends React.Component<IJsonSchemaViewer, IJsonSc
5048
expanded = false,
5149
defaultExpandedDepth = 1,
5250
emptyText,
53-
emptyClass = '',
5451
hideInheritedFrom = false,
5552
} = this.props;
5653

5754
const emptyElem = <div className="u-none c-muted">{emptyText || 'No schema defined.'}</div>;
5855

5956
// an empty array or object is still a valid response, schema is ONLY really empty when a combiner type has no information
6057
if (isSchemaViewerEmpty(schema)) {
61-
return <div className={`${emptyClass}`}>{emptyElem}</div>;
58+
return <div>{emptyElem}</div>;
6259
}
6360

6461
let parsed: IProp;

src/__stories__/JsonSchemaViewer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ storiesOf('JsonSchemaViewer', module).add('with text', () => (
3131
hideRoot={boolean('hideRoot', false)}
3232
expanded={boolean('expanded', true)}
3333
emptyText={text('emptyText', 'empty')}
34-
emptyClass={text('emptyClass', 'empty')}
3534
/>
3635
));

0 commit comments

Comments
 (0)