Skip to content

Commit

Permalink
chore:code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shayan-deriv committed May 7, 2024
1 parent 4698a53 commit c3f6a43
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/components/AppLayout/Drawer/Drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@
.deriv-drawer__overlay {
background-color: rgba(0, 0, 0, 0.5);
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
inset: 0;
margin: 0;
overflow-y: hidden;
z-index: 9999;
Expand Down
12 changes: 10 additions & 2 deletions src/components/AppLayout/Drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,22 @@ export const Drawer = ({
return (
<>
<div
className={clsx(`deriv-drawer__overlay ${!isOpen ? "exit" : ""}`, overlayClassName)}
className={clsx(
"deriv-drawer__overlay",
!isOpen && "exit",
overlayClassName,
)}
onClick={(e) => {
e.stopPropagation();
onCloseDrawer();
}}
/>
<div
className={clsx(`deriv-drawer__container ${!isOpen ? "exit" : ""}`, className )}
className={clsx(
"deriv-drawer__container",
!isOpen && "exit",
className,
)}
style={{ width }}
{...rest}
>
Expand Down

0 comments on commit c3f6a43

Please sign in to comment.