diff --git a/src/pages/Secrets/KeyValue/KeyValueSecretsEdit.tsx b/src/pages/Secrets/KeyValue/KeyValueSecretsEdit.tsx index bcd65b0..ad08587 100644 --- a/src/pages/Secrets/KeyValue/KeyValueSecretsEdit.tsx +++ b/src/pages/Secrets/KeyValue/KeyValueSecretsEdit.tsx @@ -15,13 +15,13 @@ export type KVEditProps = { type KVEditState = | { - dataLoaded: false; - } + dataLoaded: false; + } | { - dataLoaded: true; - kvData: Record; - code: string; - }; + dataLoaded: true; + kvData: Record; + code: string; + }; export class KVEditor extends Component { constructor() { @@ -79,11 +79,7 @@ export class KVEditor extends Component { } getStringKVData(data: Record): string { - return JSON.stringify( - Object.fromEntries(sortedObjectMap(data)), - null, - 4, - ); + return JSON.stringify(Object.fromEntries(sortedObjectMap(data)), null, 4); } render(): JSX.Element { @@ -95,7 +91,7 @@ export class KVEditor extends Component {

{ }} + highlight={() => {}} code={this.getStringKVData(this.state.kvData)} onUpdate={(code) => this.onCodeUpdate(code)} options={{ tab: " ".repeat(4) }}