Remove unused project name from export dialog (#2427)

* Remove unused project name from export dialog

* snaps
This commit is contained in:
Lipis 2020-11-29 15:42:44 +02:00 committed by GitHub
parent ca60244aa3
commit 204c8370a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 0 additions and 605 deletions

View file

@ -1,5 +1,4 @@
import React from "react";
import { ProjectName } from "../components/ProjectName";
import { saveAsJSON, loadFromJSON } from "../data";
import { load, save, saveAs } from "../components/icons";
import { ToolButton } from "../components/ToolButton";
@ -9,20 +8,6 @@ import { register } from "./register";
import { KEYS } from "../keys";
import { muteFSAbortError } from "../utils";
export const actionChangeProjectName = register({
name: "changeProjectName",
perform: (_elements, appState, value) => {
return { appState: { ...appState, name: value }, commitToHistory: false };
},
PanelComponent: ({ appState, updateData }) => (
<ProjectName
label={t("labels.fileTitle")}
value={appState.name || "Unnamed"}
onChange={(name: string) => updateData(name)}
/>
),
});
export const actionChangeExportBackground = register({
name: "changeExportBackground",
perform: (_elements, appState, value) => {