Skip to content

Commit

Permalink
make notification timeout longer in device list
Browse files Browse the repository at this point in the history
  • Loading branch information
soson committed Oct 16, 2024
1 parent 4bc80cb commit df80b1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ const DeviceList: VoidFunctionComponent = () => {
addToastNotification({
type: 'error',
title: 'Error',
timeout: 10000,
timeout: 30000,
content: `Uninstallation failed:\n\n
${e}`,
});
Expand Down Expand Up @@ -629,7 +629,7 @@ const DeviceList: VoidFunctionComponent = () => {
addToastNotification({
type: 'error',
title: 'Error',
timeout: 10,
timeout: 30000,
content: `Installation failed
${e}
`,
Expand Down Expand Up @@ -682,7 +682,7 @@ const DeviceList: VoidFunctionComponent = () => {
addToastNotification({
type: 'error',
title: 'Error',
timeout: 10,
timeout: 30000,
content: `Bulk installation of devices has failed
${e.message}`,
});
Expand Down
1 change: 1 addition & 0 deletions packages/shared/src/contexts/notification-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const CustomToastProvider: FC = ({ children }) => {
isVisible={visibleToasts.has(t.id)}
title={t.title}
type={t.type}
timeout={t.timeout}
onClose={() => {
setVisibleToasts((prevSet) => {
const nextSet = new Set(prevSet);
Expand Down

0 comments on commit df80b1a

Please sign in to comment.