Skip to content

Commit

Permalink
chore(alert): implement coderabbit's suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav700 committed Oct 19, 2024
1 parent c1d0ae9 commit 02dd710
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/docs/content/components/alert/custom-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const MyAlert = forwardRef((props, ref) => {
const baseWrapper = useMemo(() => {
return isVisible ? (
<div ref={domRef} {...getBaseProps()}>
<InfoCircleIcon {getAlertIconProps()} />
<InfoCircleIcon {...getAlertIconProps()} />
{mainWrapper}
{(isClosable || onClose) && (
<button onClick={handleClose} {...getCloseButtonProps()}>
Expand All @@ -120,7 +120,9 @@ const MyAlert = forwardRef((props, ref) => {
getBaseProps,
handleClose,
color,
onClose
onClose,
getAlertIconProps,
getCloseIconProps,
]);
return <>{baseWrapper}</>;
Expand Down

0 comments on commit 02dd710

Please sign in to comment.