aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
Diffstat (limited to 'modern')
-rw-r--r--modern/src/common/components/StatusCard.jsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/modern/src/common/components/StatusCard.jsx b/modern/src/common/components/StatusCard.jsx
index 2e936420..fcd62a41 100644
--- a/modern/src/common/components/StatusCard.jsx
+++ b/modern/src/common/components/StatusCard.jsx
@@ -34,6 +34,7 @@ import usePositionAttributes from '../attributes/usePositionAttributes';
import { devicesActions } from '../../store';
import { useCatch, useCatchCallback } from '../../reactHelper';
import { useAttributePreference } from '../util/preferences';
+import { snackBarDurationShortMs } from '../util/duration';
const useStyles = makeStyles((theme) => ({
card: {
@@ -297,7 +298,12 @@ const StatusCard = ({ deviceId, position, onClose, disableActions, desktopPaddin
itemId={deviceId}
onResult={(removed) => handleRemove(removed)}
/>
- <Snackbar open={shared} onClose={() => setShared(false)} message={t('sharedLinkCopied')} />
+ <Snackbar
+ open={shared}
+ onClose={() => setShared(false)}
+ autoHideDuration={snackBarDurationShortMs}
+ message={t('sharedLinkCopied')}
+ />
</>
);
};