Remove customName from state

This commit is contained in:
Arun Kumar
2021-03-19 01:30:27 +05:30
parent db4ed1ecb1
commit f774452124
8 changed files with 9 additions and 79 deletions

View File

@@ -18,12 +18,12 @@ export const actionChangeProjectName = register({
trackEvent("change", "title");
return { appState: { ...appState, name: value }, commitToHistory: false };
},
PanelComponent: ({ appState, updateData }) => (
PanelComponent: ({ appState, updateData, appProps }) => (
<ProjectName
label={t("labels.fileTitle")}
value={appState.name || "Unnamed"}
onChange={(name: string) => updateData(name)}
customName={appState.customName}
isNameEditable={typeof appProps.name !== "undefined"}
/>
),
});