Skip to content

Commit

Permalink
Auto dismiss confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Nov 25, 2023
1 parent 4a7ab9a commit 43e6573
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modern/src/common/components/StatusCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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')}
/>
</>
);
};
Expand Down

0 comments on commit 43e6573

Please sign in to comment.