From 43e6573b86ae3d015fd082280e3692711caec9fb Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 25 Nov 2023 14:23:39 -0800 Subject: Auto dismiss confirmation --- modern/src/common/components/StatusCard.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modern') 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)} /> - setShared(false)} message={t('sharedLinkCopied')} /> + setShared(false)} + autoHideDuration={snackBarDurationShortMs} + message={t('sharedLinkCopied')} + /> ); }; -- cgit v1.2.3