From 9fb884638fcc19a15c12f094131e70ee12a93022 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sat, 27 Dec 2025 21:22:44 +0000 Subject: [PATCH] Add ActionsIcon component and corresponding SVG icon - Introduced a new ActionsIcon component that utilizes an SVG for rendering. - Updated ObjectTable to display the ActionsIcon in the actions column when applicable. - Added the SVG file for the ActionsIcon to the assets/icons directory. --- assets/icons/actionsicon.svg | 9 +++++++++ src/components/Dashboard/common/ObjectTable.jsx | 5 +++-- src/components/Icons/ActionsIcon.jsx | 6 ++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 assets/icons/actionsicon.svg create mode 100644 src/components/Icons/ActionsIcon.jsx diff --git a/assets/icons/actionsicon.svg b/assets/icons/actionsicon.svg new file mode 100644 index 0000000..512ece9 --- /dev/null +++ b/assets/icons/actionsicon.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/components/Dashboard/common/ObjectTable.jsx b/src/components/Dashboard/common/ObjectTable.jsx index d95bb70..52bd2ec 100644 --- a/src/components/Dashboard/common/ObjectTable.jsx +++ b/src/components/Dashboard/common/ObjectTable.jsx @@ -41,6 +41,7 @@ import { useNavigate } from 'react-router-dom' import QuestionCircleIcon from '../../Icons/QuestionCircleIcon' import { AuthContext } from '../context/AuthContext' import { ElectronContext } from '../context/ElectronContext' +import ActionsIcon from '../../Icons/ActionsIcon' const logger = loglevel.getLogger('DasboardTable') logger.setLevel(config.logLevel) @@ -758,11 +759,11 @@ const ObjectTable = forwardRef( } }) - if (rowActions.length > 0) { + if (rowActions.length > 0 && tableData.some((item) => !item.isSkeleton)) { columnsWithSkeleton.push({ title: ( - {'Actions'} + ), key: 'actions', diff --git a/src/components/Icons/ActionsIcon.jsx b/src/components/Icons/ActionsIcon.jsx new file mode 100644 index 0000000..819a96a --- /dev/null +++ b/src/components/Icons/ActionsIcon.jsx @@ -0,0 +1,6 @@ +import Icon from '@ant-design/icons' +import CustomIconSvg from '../../../assets/icons/actionsicon.svg?react' + +const ActionsIcon = (props) => + +export default ActionsIcon