Minor redesign of Export Dialog (#604)

This commit is contained in:
Lipis 2020-01-29 02:25:47 +02:00 committed by GitHub
parent 97b11b0f53
commit ba4fc0f1b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 45 additions and 42 deletions

View file

@ -1,6 +1,6 @@
import React from "react";
import { Action } from "./types";
import { EditableText } from "../components/EditableText";
import { ProjectName } from "../components/ProjectName";
import { saveAsJSON, loadFromJSON } from "../scene";
import { load, save } from "../components/icons";
import { ToolButton } from "../components/ToolButton";
@ -11,7 +11,7 @@ export const actionChangeProjectName: Action = {
return { appState: { ...appState, name: value } };
},
PanelComponent: ({ appState, updateData, t }) => (
<EditableText
<ProjectName
label={t("labels.fileTitle")}
value={appState.name || "Unnamed"}
onChange={(name: string) => updateData(name)}