Skip to content

Commit

Permalink
feat(CodeInput): add json mode (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
snqb authored Apr 26, 2023
1 parent 114bfb2 commit 29c1349
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/code-input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export interface CodeInputProps
extends Omit<BoxProps, 'children' | 'onChange'> {
label?: string;
value: string;
// Use javascript for displaying JSON
mode: 'javascript' | 'yaml' | 'python' | 'sql';
mode: 'json' | 'javascript' | 'yaml' | 'python' | 'sql';
width?: string | number;
height?: string | number;
labelAction?: React.ReactNode;
Expand Down

0 comments on commit 29c1349

Please sign in to comment.