fix: toast action button has transparent text

This commit is contained in:
thecodrr
2022-06-07 06:53:45 +05:00
parent 75b76d7747
commit 7e9c12e073

View File

@@ -8,7 +8,7 @@ type ToastType = "success" | "error" | "warn" | "info";
type ToastAction = {
text: string;
onClick: () => void;
type: "primary" | "text";
type?: "primary" | "text";
};
function showToast(
@@ -73,7 +73,7 @@ function ToastContainer(props: ToastContainerProps) {
<Button
flexShrink={0}
variant="primary"
color={action.type}
color={action.type || "primary"}
fontWeight="bold"
bg={"transparent"}
fontSize="body"