From 897440b477fac305b4aa35317e31f3f2164e932f Mon Sep 17 00:00:00 2001 From: Gandharv Date: Thu, 27 Jan 2022 17:27:29 +0500 Subject: [PATCH] adds icon for runjs queries (#1971) --- frontend/src/Editor/Editor.jsx | 7 ++++++- frontend/src/Editor/Icons/runjs.svg | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 frontend/src/Editor/Icons/runjs.svg diff --git a/frontend/src/Editor/Editor.jsx b/frontend/src/Editor/Editor.jsx index a7040cef67..3353a7d4be 100644 --- a/frontend/src/Editor/Editor.jsx +++ b/frontend/src/Editor/Editor.jsx @@ -35,6 +35,7 @@ import queryString from 'query-string'; import toast from 'react-hot-toast'; import produce, { enablePatches, setAutoFreeze, applyPatches } from 'immer'; import Logo from './Icons/logo.svg'; +import RunjsIcon from './Icons/runjs.svg'; import EditIcon from './Icons/edit.svg'; import MobileSelectedIcon from './Icons/mobile-selected.svg'; import DesktopSelectedIcon from './Icons/desktop-selected.svg'; @@ -657,7 +658,11 @@ class Editor extends React.Component { onMouseLeave={() => this.setShowHiddenOptionsForDataQuery(null)} >
- {getSvgIcon(sourceMeta.kind.toLowerCase(), 25, 25)} + {sourceMeta.kind === 'runjs' ? ( + + ) : ( + getSvgIcon(sourceMeta.kind.toLowerCase(), 25, 25) + )} {dataQuery.name}
diff --git a/frontend/src/Editor/Icons/runjs.svg b/frontend/src/Editor/Icons/runjs.svg new file mode 100644 index 0000000000..e940f7662d --- /dev/null +++ b/frontend/src/Editor/Icons/runjs.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file