mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Minor redesign of Export Dialog (#604)
This commit is contained in:
parent
97b11b0f53
commit
ba4fc0f1b3
5 changed files with 45 additions and 42 deletions
|
@ -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)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue