Skip to content

Commit

Permalink
fix: sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardodouradol committed Aug 14, 2024
1 parent 5b0c9be commit 7dc2d92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ocean-react/src/WebNotification/WebNotification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type WebNotificationProps = {
position?: Position;
className?: string;
title?: string;
onKeyDown?: React.KeyboardEventHandler;
} & React.ComponentPropsWithoutRef<'div'>;

const WebNotification = React.forwardRef<HTMLDivElement, WebNotificationProps>(
Expand All @@ -35,6 +36,7 @@ const WebNotification = React.forwardRef<HTMLDivElement, WebNotificationProps>(
position = 'bottom-right',
className,
title,
onKeyDown,
},
ref
) => {
Expand Down Expand Up @@ -97,8 +99,7 @@ const WebNotification = React.forwardRef<HTMLDivElement, WebNotificationProps>(
<div
className="ods-web-notification__action"
onClick={dispatchAction}
role="button"
tabIndex={0}
onKeyDown={onKeyDown}
>
<div
className={`ods-web-notification__action-text-${type}`}
Expand All @@ -111,8 +112,7 @@ const WebNotification = React.forwardRef<HTMLDivElement, WebNotificationProps>(
<div
className="ods-web-notification__wrapper"
onClick={closeWebNotification}
role="button"
tabIndex={0}
onKeyDown={onKeyDown}
>
<X size={16} />
</div>
Expand Down

0 comments on commit 7dc2d92

Please sign in to comment.