From fd143a0c13d45b580fbcfbd38c5173da1b8b2cd2 Mon Sep 17 00:00:00 2001 From: Rohan-3337 Date: Thu, 10 Oct 2024 19:22:43 +0530 Subject: [PATCH] Fix: Updated tooltips and pop-ups for copy path and copy value actions --- frontend/src/Editor/Inspector/Inspector.jsx | 5 +++-- frontend/src/Editor/LeftSidebar/SidebarInspector.jsx | 7 +++---- package.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/Editor/Inspector/Inspector.jsx b/frontend/src/Editor/Inspector/Inspector.jsx index 715bd3e6e5..55701a2af2 100644 --- a/frontend/src/Editor/Inspector/Inspector.jsx +++ b/frontend/src/Editor/Inspector/Inspector.jsx @@ -88,6 +88,7 @@ export const Inspector = ({ layouts: allComponents[selectedComponentId].layouts, parent: allComponents[selectedComponentId].parent, }; + const [showWidgetDeleteConfirmation, setWidgetDeleteConfirmation] = useState(false); // eslint-disable-next-line no-unused-vars const [newComponentName, setNewComponentName] = useState(''); @@ -461,8 +462,8 @@ export const Inspector = ({ componentMeta.displayName === 'Toggle Switch (Legacy)' ? 'Toggle (Legacy)' : componentMeta.displayName === 'Toggle Switch' - ? 'Toggle Switch' - : componentMeta.component, + ? 'Toggle Switch' + : componentMeta.component, })} diff --git a/frontend/src/Editor/LeftSidebar/SidebarInspector.jsx b/frontend/src/Editor/LeftSidebar/SidebarInspector.jsx index 051ba39482..2b391478cd 100644 --- a/frontend/src/Editor/LeftSidebar/SidebarInspector.jsx +++ b/frontend/src/Editor/LeftSidebar/SidebarInspector.jsx @@ -110,9 +110,8 @@ export const LeftSidebarInspector = ({ if (!_.isEmpty(component) && component.name === key) { return { iconName: key, - iconPath: `assets/images/icons/widgets/${ - component.component.toLowerCase() === 'radiobutton' ? 'radio-button' : component.component.toLowerCase() - }.svg`, + iconPath: `assets/images/icons/widgets/${component.component.toLowerCase() === 'radiobutton' ? 'radio-button' : component.component.toLowerCase() + }.svg`, className: 'component-icon', }; } @@ -235,7 +234,7 @@ export const LeftSidebarInspector = ({ const copyToClipboard = (data) => { const stringified = JSON.stringify(data, null, 2).replace(/\\/g, ''); navigator.clipboard.writeText(stringified); - return toast.success('Copied to the clipboard', { position: 'top-center' }); + return toast.success('Value copied to clipboard', { position: 'top-center' }); }; const callbackActions = [ diff --git a/package.json b/package.json index ff844d431c..6bd77d444b 100644 --- a/package.json +++ b/package.json @@ -53,4 +53,4 @@ "prepare": "husky install", "update-version": "node update-version.js" } -} \ No newline at end of file +}