Skip to content

Commit

Permalink
🪟 🧹 Remove unused Popout component + remove unused onClick prop from …
Browse files Browse the repository at this point in the history
…Overlay (#9264)

Co-authored-by: Vladimir <[email protected]>
  • Loading branch information
teallarson and dizel852 committed Oct 16, 2023
1 parent 6a8cfa7 commit 4147018
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 156 deletions.
5 changes: 1 addition & 4 deletions airbyte-webapp/src/components/ui/Overlay/Overlay.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@
right: 0;
bottom: 0;
z-index: z-indices.$overlay;

&.dark {
background: colors.$overlay-background;
}
background: colors.$overlay-background;
}
19 changes: 2 additions & 17 deletions airbyte-webapp/src/components/ui/Overlay/Overlay.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
import classNames from "classnames";

import styles from "./Overlay.module.scss";

interface OverlayProps {
onClick?: React.MouseEventHandler<HTMLDivElement>;
variant?: "dark" | "transparent";
}

export const Overlay: React.FC<OverlayProps> = ({ variant = "dark", onClick }) => (
<div
className={classNames(styles.container, {
[styles.dark]: variant === "dark",
})}
role={onClick ? "button" : undefined}
onClick={onClick}
aria-hidden="true"
data-testid="overlayContainer"
/>
export const Overlay: React.FC = () => (
<div className={styles.container} aria-hidden="true" data-testid="overlayContainer" />
);
45 changes: 0 additions & 45 deletions airbyte-webapp/src/components/ui/Popout/Popout.stories.tsx

This file was deleted.

89 changes: 0 additions & 89 deletions airbyte-webapp/src/components/ui/Popout/Popout.tsx

This file was deleted.

1 change: 0 additions & 1 deletion airbyte-webapp/src/components/ui/Popout/index.tsx

This file was deleted.

0 comments on commit 4147018

Please sign in to comment.