Visualization: copy

This commit is contained in:
Enrico Ros
2023-11-13 18:29:02 -08:00
parent a71588777a
commit bc6bf3195e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ export function DiagramsModal(props: { config: DiagramConfig, onClose: () => voi
// state
const [showOptions, setShowOptions] = React.useState(true);
const [message, setMessage] = React.useState<DMessage | null>(null);
const [diagramType, diagramComponent] = useFormRadio<DiagramType>('auto', diagramTypes, 'Visualization');
const [diagramType, diagramComponent] = useFormRadio<DiagramType>('auto', diagramTypes, 'Visualize');
const [diagramLanguage, languageComponent] = useFormRadio<DiagramLanguage>('plantuml', diagramLanguages, 'Style');
const [errorMessage, setErrorMessage] = React.useState<string | null>(null);
const [abortController, setAbortController] = React.useState<AbortController | null>(null);
@@ -146,7 +146,7 @@ export function DiagramsModal(props: { config: DiagramConfig, onClose: () => voi
{languageComponent}
</Grid>
)}
<Grid xs={12}>
<Grid xs={12} xl={6}>
{llmComponent}
</Grid>
</Grid>
+1 -1
View File
@@ -8,7 +8,7 @@ export type DiagramLanguage = 'mermaid' | 'plantuml';
// NOTE: keep these global, or it will trigger re-renders
export const diagramTypes: FormRadioOption<DiagramType>[] = [
{ label: 'Diagram', value: 'auto' },
{ label: 'Auto-diagram', value: 'auto' },
{ label: 'Mindmap', value: 'mind' },
];