Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-mt committed Jun 9, 2024
1 parent 1990ecb commit 42a6859
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ import { useState } from 'react';
import JsonSchemaEditor from '@quiet-front-end/json-schema-editor-antd';

export default () => {
const [jsonData, setJsonData] = useState({});
const [jsonSchema, setJsonSchema] = useState();
return (
<JsonSchemaEditor
mock={true}
data={jsonData}
data={jsonSchema}
onChange={(data) => {
setJsonData(data);
setJsonSchema(data);
}}
/>
);
Expand Down

0 comments on commit 42a6859

Please sign in to comment.