diff options
author | Jamie Guthrie <jamie.guthrie@gmail.com> | 2023-08-16 22:32:58 +0200 |
---|---|---|
committer | Jamie Guthrie <jamie.guthrie@gmail.com> | 2023-08-16 22:32:58 +0200 |
commit | c4d214632676a05d3e1cb33efb3bb6d99c7e0488 (patch) | |
tree | 0d04abd5cb84f331e8a077b7c52679e59f3bd263 /modern/src/settings/components | |
parent | 62ae7d516525bba2c2d053832ece7d613be86dc9 (diff) | |
download | trackermap-web-c4d214632676a05d3e1cb33efb3bb6d99c7e0488.tar.gz trackermap-web-c4d214632676a05d3e1cb33efb3bb6d99c7e0488.tar.bz2 trackermap-web-c4d214632676a05d3e1cb33efb3bb6d99c7e0488.zip |
Use more basic tooltip wording
Diffstat (limited to 'modern/src/settings/components')
-rw-r--r-- | modern/src/settings/components/CollectionActions.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modern/src/settings/components/CollectionActions.js b/modern/src/settings/components/CollectionActions.js index bf8eb257..87ffe7af 100644 --- a/modern/src/settings/components/CollectionActions.js +++ b/modern/src/settings/components/CollectionActions.js @@ -18,7 +18,7 @@ const useStyles = makeStyles(() => ({ })); const CollectionActions = ({ - itemId, editPath, endpoint, collectionTitle, setTimestamp, customActions, readonly, + itemId, editPath, endpoint, setTimestamp, customActions, readonly, }) => { const theme = useTheme(); const classes = useStyles(); @@ -74,7 +74,7 @@ const CollectionActions = ({ ) : ( <div className={classes.row}> {customActions && customActions.map((action) => ( - <Tooltip title={action.tooltip} enterDelay={500} enterNextDelay={500}> + <Tooltip title={action.tooltip || action.title} enterDelay={500} enterNextDelay={500}> <IconButton size="small" onClick={() => handleCustom(action)} key={action.key}> {action.icon} </IconButton> @@ -82,12 +82,12 @@ const CollectionActions = ({ ))} {!readonly && ( <> - <Tooltip title={t('sharedEdit').concat(' ').concat(collectionTitle || '')} enterDelay={500} enterNextDelay={500}> + <Tooltip title={t('sharedEdit')} enterDelay={500} enterNextDelay={500}> <IconButton size="small" onClick={handleEdit}> <EditIcon fontSize="small" /> </IconButton> </Tooltip> - <Tooltip title={t('sharedRemove').concat(' ').concat(collectionTitle || '')} enterDelay={500} enterNextDelay={500}> + <Tooltip title={t('sharedRemove')} enterDelay={500} enterNextDelay={500}> <IconButton size="small" onClick={handleRemove}> <DeleteIcon fontSize="small" /> </IconButton> |