Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit cdd6791

Browse files
committed
New post 🚀
1 parent e688454 commit cdd6791

File tree

6 files changed

+590
-17
lines changed

6 files changed

+590
-17
lines changed

.idea/codeStyles/Project.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/design-system/atoms/overlay.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ export interface OverlayProps {
99
onClick: () => void;
1010
}
1111

12-
type Props = TransientProps<OverlayProps, "div">;
13-
14-
const StyledOverlay = styled.div<Props>`
12+
const StyledOverlay = styled.div<TransientProps<OverlayProps, "div">>`
1513
position: fixed;
1614
top: 0;
1715
left: 0;
@@ -28,12 +26,5 @@ const StyledOverlay = styled.div<Props>`
2826
export const Overlay: FC<OverlayProps> = ({ zIndex, onClick, delay }) => {
2927
useLockBodyScroll();
3028

31-
return (
32-
<StyledOverlay
33-
$zIndex={zIndex}
34-
onClick={onClick}
35-
$delay={delay}
36-
data-test={"ciaone"}
37-
/>
38-
);
29+
return <StyledOverlay $zIndex={zIndex} onClick={onClick} $delay={delay} />;
3930
};

0 commit comments

Comments
 (0)