scaffolder: tweak names of TemplateEditor components
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
+2
-2
@@ -47,7 +47,7 @@ interface EditorIntroProps {
|
||||
onSelect?: (option: 'local' | 'form') => void;
|
||||
}
|
||||
|
||||
export const EditorIntro = (props: EditorIntroProps) => {
|
||||
export function TemplateEditorIntro(props: EditorIntroProps) {
|
||||
const classes = useStyles();
|
||||
const supportsLoad = WebFileSystemAccess.isSupported();
|
||||
|
||||
@@ -124,4 +124,4 @@ export const EditorIntro = (props: EditorIntroProps) => {
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
}
|
||||
@@ -19,9 +19,9 @@ import {
|
||||
TemplateDirectoryAccess,
|
||||
WebFileSystemAccess,
|
||||
} from '../../lib/filesystem';
|
||||
import { EditorIntro } from './EditorIntro';
|
||||
import { TemplateEditorIntro } from './TemplateEditorIntro';
|
||||
import { TemplateEditor } from './TemplateEditor';
|
||||
import { TemplateFormEditor } from './TemplateFormEditor';
|
||||
import { TemplateFormPreviewer } from './TemplateFormPreviewer';
|
||||
import { FieldExtensionOptions } from '../../extensions';
|
||||
|
||||
type Selection =
|
||||
@@ -52,7 +52,7 @@ export function TemplateEditorPage(props: TemplateEditorPageProps) {
|
||||
);
|
||||
} else if (selection?.type === 'form') {
|
||||
content = (
|
||||
<TemplateFormEditor
|
||||
<TemplateFormPreviewer
|
||||
defaultPreviewTemplate={props.defaultPreviewTemplate}
|
||||
customFieldExtensions={props.customFieldExtensions}
|
||||
onClose={() => setSelection(undefined)}
|
||||
@@ -61,7 +61,7 @@ export function TemplateEditorPage(props: TemplateEditorPageProps) {
|
||||
} else {
|
||||
content = (
|
||||
<Content>
|
||||
<EditorIntro
|
||||
<TemplateEditorIntro
|
||||
onSelect={option => {
|
||||
if (option === 'local') {
|
||||
WebFileSystemAccess.get()
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ const useStyles = makeStyles(theme => ({
|
||||
},
|
||||
}));
|
||||
|
||||
export const TemplateFormEditor = ({
|
||||
export const TemplateFormPreviewer = ({
|
||||
defaultPreviewTemplate = EXAMPLE_TEMPLATE_PARAMS_YAML,
|
||||
customFieldExtensions = [],
|
||||
onClose,
|
||||
Reference in New Issue
Block a user