Manually merge from 'pre-kjol' into 'master'
This commit is contained in:
@@ -7,7 +7,7 @@ export type ToastPosition = "top-right" | "top-left" | "bottom-right" | "bottom-
|
||||
export interface ToastConfig {
|
||||
message: string;
|
||||
type?: ToastType;
|
||||
duration?: number | null;
|
||||
duration?: number | null; // in milliseconds
|
||||
dismissible?: boolean;
|
||||
showProgress?: boolean;
|
||||
}
|
||||
@@ -90,7 +90,7 @@ interface ToastItemProps {
|
||||
|
||||
function ToastItem(props: ToastItemProps) {
|
||||
const type = () => props.toast.type ?? "info";
|
||||
const duration = () => props.toast.duration ?? DEFAULT_DURATION;
|
||||
const duration = () => (props.toast.duration !== undefined ? props.toast.duration : DEFAULT_DURATION);
|
||||
const dismissible = () => props.toast.dismissible !== false;
|
||||
const showProgress = () => props.toast.showProgress !== false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user