From de10a1d13c8cec5ea6792292dec2712299c1db9e Mon Sep 17 00:00:00 2001 From: Joy A Date: Thu, 22 Aug 2024 14:47:21 +0530 Subject: [PATCH] #1290 | Allow deletion of location types --- src/adminApp/addressLevelType.js | 57 +++++--------------------------- 1 file changed, 8 insertions(+), 49 deletions(-) diff --git a/src/adminApp/addressLevelType.js b/src/adminApp/addressLevelType.js index 90888b08d..fef4eb516 100644 --- a/src/adminApp/addressLevelType.js +++ b/src/adminApp/addressLevelType.js @@ -28,22 +28,11 @@ import { createdAudit, modifiedAudit } from "./components/AuditUtil"; import { ToolTipContainer } from "../common/components/ToolTipContainer"; export const LocationTypeList = props => ( - + - + @@ -55,17 +44,8 @@ const ParentReferenceField = ({ showToolTip, ...props }) => { return isNil(props.record.parentId) ? ( ) : ( - - + + record.name} /> @@ -92,40 +72,19 @@ export const LocationTypeDetail = props => ( const CreateEditToolbar = ({ edit, ...props }) => ( - {edit && ( - - )} + {edit && } ); const LocationTypeForm = ({ edit, ...props }) => { return ( } {...props} redirect="show"> - - + + {edit ? ( ) : ( - + )}