aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/ComputedAttributesPage.js
diff options
context:
space:
mode:
authorAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-01-08 16:52:26 +0530
committerAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-01-08 16:52:26 +0530
commitf48e7801d86ca3d8b831358013823dd62d33c7ee (patch)
tree5f9a8ffedc10160ce3aecc7f4f1cb50074a4497f /modern/src/settings/ComputedAttributesPage.js
parente3ead466abdb03c5f1eb5d3979ad286d38ac95cb (diff)
downloadetbsa-traccar-web-f48e7801d86ca3d8b831358013823dd62d33c7ee.tar.gz
etbsa-traccar-web-f48e7801d86ca3d8b831358013823dd62d33c7ee.tar.bz2
etbsa-traccar-web-f48e7801d86ca3d8b831358013823dd62d33c7ee.zip
Computed attributes code improvements
Diffstat (limited to 'modern/src/settings/ComputedAttributesPage.js')
-rw-r--r--modern/src/settings/ComputedAttributesPage.js14
1 files changed, 6 insertions, 8 deletions
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 }) => {
<Table>
<TableHead>
<TableRow>
- {adminEnabled && (<TableCell className={classes.columnAction} />)}
+ {adminEnabled && <TableCell className={classes.columnAction} />}
<TableCell>{t('sharedDescription')}</TableCell>
<TableCell>{t('sharedAttribute')}</TableCell>
<TableCell>{t('sharedExpression')}</TableCell>
@@ -43,13 +43,11 @@ const ComputedAttributeView = ({ updateTimestamp, onMenuClick }) => {
{items.map((item) => (
<TableRow key={item.id}>
{adminEnabled &&
- (
- <TableCell className={classes.columnAction} padding="none">
- <IconButton onClick={(event) => onMenuClick(event.currentTarget, item.id)}>
- <MoreVertIcon />
- </IconButton>
- </TableCell>
- )
+ <TableCell className={classes.columnAction} padding="none">
+ <IconButton onClick={(event) => onMenuClick(event.currentTarget, item.id)}>
+ <MoreVertIcon />
+ </IconButton>
+ </TableCell>
}
<TableCell>{item.description}</TableCell>
<TableCell>{item.attribute}</TableCell>