From 531e0036b2400f2864bb2d1581d337e0de9e3d44 Mon Sep 17 00:00:00 2001 From: James Morris Date: Tue, 26 Jul 2022 11:47:36 +0100 Subject: [PATCH] Renamed the add name dialog to better suit including bio --- apps/comments-ui/src/components/Form.js | 2 +- .../modals/{AddNameDialog.js => AddDetailsDialog.js} | 0 apps/comments-ui/src/pages.js | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename apps/comments-ui/src/components/modals/{AddNameDialog.js => AddDetailsDialog.js} (100%) diff --git a/apps/comments-ui/src/components/Form.js b/apps/comments-ui/src/components/Form.js index 70a17e8c02..0a9c47583a 100644 --- a/apps/comments-ui/src/components/Form.js +++ b/apps/comments-ui/src/components/Form.js @@ -72,7 +72,7 @@ const Form = (props) => { if (!memberName && !props.isEdit) { editor.commands.blur(); dispatchAction('openPopup', { - type: 'addNameDialog', + type: 'addDetailsDialog', callback: () => { editor.commands.focus(); } diff --git a/apps/comments-ui/src/components/modals/AddNameDialog.js b/apps/comments-ui/src/components/modals/AddDetailsDialog.js similarity index 100% rename from apps/comments-ui/src/components/modals/AddNameDialog.js rename to apps/comments-ui/src/components/modals/AddDetailsDialog.js diff --git a/apps/comments-ui/src/pages.js b/apps/comments-ui/src/pages.js index 59a3491e26..4323b89c5d 100644 --- a/apps/comments-ui/src/pages.js +++ b/apps/comments-ui/src/pages.js @@ -1,11 +1,11 @@ -import AddNameDialog from './components/modals/AddNameDialog'; +import AddDetailsDialog from './components/modals/AddDetailsDialog'; import ReportDialog from './components/modals/ReportDialog'; /** List of all available pages in Comments-UI, mapped to their UI component * Any new page added to comments-ui needs to be mapped here */ const Pages = { - addNameDialog: AddNameDialog, + addDetailsDialog: AddDetailsDialog, reportDialog: ReportDialog }; export default Pages;