diff options
author | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-12 03:30:34 +0000 |
---|---|---|
committer | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-12 03:30:34 +0000 |
commit | f60983a4131862db0125844a651b994d2212022d (patch) | |
tree | c44ef60f3c37dbfc286ff3f4111f10a08b7d7b4f /modern/src/settings | |
parent | a7e1b5f5fd772d37f9777fec097f28411f13562f (diff) | |
download | etbsa-traccar-web-f60983a4131862db0125844a651b994d2212022d.tar.gz etbsa-traccar-web-f60983a4131862db0125844a651b994d2212022d.tar.bz2 etbsa-traccar-web-f60983a4131862db0125844a651b994d2212022d.zip |
Restored styling
Diffstat (limited to 'modern/src/settings')
-rw-r--r-- | modern/src/settings/ComputedAttributesPage.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modern/src/settings/ComputedAttributesPage.js b/modern/src/settings/ComputedAttributesPage.js index d376f23..9f131d3 100644 --- a/modern/src/settings/ComputedAttributesPage.js +++ b/modern/src/settings/ComputedAttributesPage.js @@ -20,9 +20,7 @@ const ComputedAttributeView = ({ updateTimestamp, onMenuClick }) => { const classes = useStyles(); const [items, setItems] = useState([]); - const adminEnabled = useSelector( - (state) => state.session.user && state.session.user.administrator, - ); + const adminEnabled = useSelector((state) => state.session.user && state.session.user.administrator); useEffectAsync(async () => { const response = await fetch('/api/attributes/computed'); @@ -49,9 +47,7 @@ const ComputedAttributeView = ({ updateTimestamp, onMenuClick }) => { {adminEnabled && ( <TableCell className={classes.columnAction} padding="none"> - <IconButton - onClick={(event) => onMenuClick(event.currentTarget, item.id)} - > + <IconButton onClick={(event) => onMenuClick(event.currentTarget, item.id)}> <MoreVertIcon /> </IconButton> </TableCell> |