diff --git a/src/common/components/StatusCard.jsx b/src/common/components/StatusCard.jsx index a6b572a8..d8215fda 100644 --- a/src/common/components/StatusCard.jsx +++ b/src/common/components/StatusCard.jsx @@ -1,6 +1,6 @@ import React, { useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; -import { useNavigate } from 'react-router-dom'; +import { useNavigate, Link as RouterLink } from 'react-router-dom'; import Draggable from 'react-draggable'; import { Card, @@ -15,6 +15,8 @@ import { Menu, MenuItem, CardMedia, + TableFooter, + Link, } from '@mui/material'; import makeStyles from '@mui/styles/makeStyles'; import CloseIcon from '@mui/icons-material/Close'; @@ -223,7 +225,17 @@ const StatusCard = ({ deviceId, position, onClose, disableActions, desktopPaddin )} /> ))} + + + + + + {t('sharedShowDetails')} + + + + )} @@ -267,13 +279,14 @@ const StatusCard = ({ deviceId, position, onClose, disableActions, desktopPaddin {position && ( setAnchorEl(null)}> - navigate(`/position/${position.id}`)}>{t('sharedShowDetails')} {t('sharedCreateGeofence')} {t('linkGoogleMaps')} {t('linkAppleMaps')} {t('linkStreetView')} {navigationAppTitle && {navigationAppTitle}} - {!shareDisabled && !user.temporary && navigate(`/settings/device/${deviceId}/share`)}>{t('deviceShare')}} + {!shareDisabled && !user.temporary && ( + navigate(`/settings/device/${deviceId}/share`)}>{t('deviceShare')} + )} )}