mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-27 03:41:11 +01:00
Fix protected branch push rejections not being detected (#345)
This commit is contained in:
@@ -45,11 +45,24 @@ export function hideToast(toHide: ToastInstance) {
|
||||
});
|
||||
}
|
||||
|
||||
export function showErrorToast<T>(id: string, message: T) {
|
||||
export function showErrorToast<T>({
|
||||
id,
|
||||
title,
|
||||
message,
|
||||
}: {
|
||||
id: string;
|
||||
title: string;
|
||||
message: T;
|
||||
}) {
|
||||
return showToast({
|
||||
id,
|
||||
message: String(message),
|
||||
timeout: 8000,
|
||||
color: 'danger',
|
||||
timeout: null,
|
||||
message: (
|
||||
<div className="w-full">
|
||||
<h2 className="text-lg font-bold mb-2">{title}</h2>
|
||||
<div className="whitespace-pre-wrap break-words">{String(message)}</div>
|
||||
</div>
|
||||
),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user