Skip to content

Commit

Permalink
fix: some types
Browse files Browse the repository at this point in the history
  • Loading branch information
amir78729 committed Jul 20, 2024
1 parent c111d07 commit d11b8f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/SchemaBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const SchemaBuilder = () => {
<Tab label="Form Preview"></Tab>
</Tabs>

{tab === TABS.BUILDER && <SchemaPreview name="" schema={schema} data={{}} />}
{tab === TABS.BUILDER && <SchemaPreview schema={schema} data={{}} />}
{tab === TABS.SCHEMA && <Box dangerouslySetInnerHTML={{ __html: highlightedSchema }}></Box>}
{tab === TABS.FORM_PREVIEW && <Form schema={schema} validator={validator} />}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/providers/SchemaProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ const addSpecificProperties = (builder: JsonSchemaBuilder, state: JsonSchema) =>
}
if (state.patternProperties) builder.setPatternProperties(state.patternProperties);
if (state.additionalProperties) builder.setAdditionalProperties(state.additionalProperties);

break;

case SCHEMA_TYPE.ARRAY:
if (state.items) builder.setItems(state.items);
if (state.prefixItems) builder.setPrefixItems(state.prefixItems);
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export type FieldConfig = {
export type DataVisualizationType = {
schema: RJSFSchema;
data: unknown;
name: string;
name?: string;
path?: string;
};

export type NestedObject = { [key: string]: never };
export type NestedObject = { [key: string]: unknown };

0 comments on commit d11b8f0

Please sign in to comment.