From 697d2685f3713cc9b8ec418d6f94b1bd5a709087 Mon Sep 17 00:00:00 2001 From: sara-pervana Date: Fri, 26 Jan 2024 00:59:51 +0100 Subject: [PATCH] small formatting fixes --- pkgs/ui/src/components/consume_action/index.tsx | 5 +++++ pkgs/ui/src/components/entity_actions/index.tsx | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 pkgs/ui/src/components/consume_action/index.tsx diff --git a/pkgs/ui/src/components/consume_action/index.tsx b/pkgs/ui/src/components/consume_action/index.tsx new file mode 100644 index 0000000..0ae9bc8 --- /dev/null +++ b/pkgs/ui/src/components/consume_action/index.tsx @@ -0,0 +1,5 @@ +const ConsumeAction = () => { + return <>; +}; + +export default ConsumeAction; diff --git a/pkgs/ui/src/components/entity_actions/index.tsx b/pkgs/ui/src/components/entity_actions/index.tsx index 7a3ba8d..27d2b3d 100644 --- a/pkgs/ui/src/components/entity_actions/index.tsx +++ b/pkgs/ui/src/components/entity_actions/index.tsx @@ -26,7 +26,7 @@ const EntityActions = ({ endpointData, rowData }: Props) => { severity: AlertColor; }>(SNACKBAR_DEFAULT); - console.error("Error registering/deregistering:", error); + if (error) console.error("Error registering/deregistering:", error); const onDeleteEntity = async () => { if (rowData) @@ -34,7 +34,6 @@ const EntityActions = ({ endpointData, rowData }: Props) => { const response = await deleteEntity({ entity_did: rowData?.entity_did, }); - console.log("On Delete:", response.data.message); setSnackbar({ open: true, message: response.data.message,