From f48e7801d86ca3d8b831358013823dd62d33c7ee Mon Sep 17 00:00:00 2001 From: Ashutosh Bishnoi Date: Fri, 8 Jan 2021 16:52:26 +0530 Subject: Computed attributes code improvements --- modern/src/EditCollectionView.js | 8 +++----- modern/src/settings/ComputedAttributesPage.js | 14 ++++++-------- 2 files changed, 9 insertions(+), 13 deletions(-) (limited to 'modern') diff --git a/modern/src/EditCollectionView.js b/modern/src/EditCollectionView.js index f15d72c..d3d0af1 100644 --- a/modern/src/EditCollectionView.js +++ b/modern/src/EditCollectionView.js @@ -63,11 +63,9 @@ const EditCollectionView = ({ content, editPath, endpoint }) => { <> {adminEnabled && - ( - - - - ) + + + } {t('sharedEdit')} diff --git a/modern/src/settings/ComputedAttributesPage.js b/modern/src/settings/ComputedAttributesPage.js index dde6b23..1a6feab 100644 --- a/modern/src/settings/ComputedAttributesPage.js +++ b/modern/src/settings/ComputedAttributesPage.js @@ -32,7 +32,7 @@ const ComputedAttributeView = ({ updateTimestamp, onMenuClick }) => { - {adminEnabled && ()} + {adminEnabled && } {t('sharedDescription')} {t('sharedAttribute')} {t('sharedExpression')} @@ -43,13 +43,11 @@ const ComputedAttributeView = ({ updateTimestamp, onMenuClick }) => { {items.map((item) => ( {adminEnabled && - ( - - onMenuClick(event.currentTarget, item.id)}> - - - - ) + + onMenuClick(event.currentTarget, item.id)}> + + + } {item.description} {item.attribute} -- cgit v1.2.3