Skip to content

Commit

Permalink
fix: toastify import styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Dika Mahendra committed Mar 5, 2024
1 parent 99165f0 commit ecde35d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/alert/src/alert.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {forwardRef} from "@jala-banyu/system";
import {CloseIcon} from "@jala-banyu/shared-icons";
import {injectStyle} from "react-toastify/dist/inject-style";

import {UseAlertProps, useAlert} from "./use-alert";
import "react-toastify/dist/ReactToastify.css";

export interface AlertProps extends UseAlertProps {}

Expand All @@ -29,6 +29,8 @@ const Alert = forwardRef<"div", AlertProps>((props, ref) => {
ref,
});

injectStyle();

const renderEndContent = endContent ? (
<div {...getEndContentProps()}>{endContent}</div>
) : (
Expand Down

0 comments on commit ecde35d

Please sign in to comment.