@bitrise/bitkit 9.24.2 → 9.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useToast as useChakraToast,
|
|
2
|
+
import { useToast as useChakraToast, UseToastOptions } from '@chakra-ui/react';
|
|
3
3
|
import { DateTime } from 'luxon';
|
|
4
4
|
import Notification, {
|
|
5
5
|
ActionProps,
|
|
@@ -14,8 +14,8 @@ export interface ToastOptions {
|
|
|
14
14
|
description: React.ReactNode;
|
|
15
15
|
status: NotificationProps['status'];
|
|
16
16
|
action?: ActionProps;
|
|
17
|
-
duration?:
|
|
18
|
-
position?:
|
|
17
|
+
duration?: UseToastOptions['duration'];
|
|
18
|
+
position?: UseToastOptions['position'];
|
|
19
19
|
isClosable?: boolean;
|
|
20
20
|
showTimestamp?: boolean;
|
|
21
21
|
}
|
|
@@ -30,7 +30,7 @@ const useToast = () => {
|
|
|
30
30
|
toast({
|
|
31
31
|
isClosable: opts.isClosable,
|
|
32
32
|
duration: opts.duration,
|
|
33
|
-
position: opts.position,
|
|
33
|
+
position: opts.position || 'bottom',
|
|
34
34
|
render: ({ onClose }) => (
|
|
35
35
|
<Notification
|
|
36
36
|
boxShadow="large"
|