Skip to content

Commit

Permalink
fix modal overlay problem (#13724)
Browse files Browse the repository at this point in the history
  • Loading branch information
teallarson committed Jun 13, 2022
1 parent 39e375b commit 7aeb48e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airbyte-webapp/src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styled, { keyframes } from "styled-components";

import ContentCard from "components/ContentCard";

export interface IProps {
export interface ModalProps {
title?: string | React.ReactNode;
onClose?: () => void;
clear?: boolean;
Expand All @@ -26,10 +26,10 @@ const Overlay = styled.div`
display: flex;
justify-content: center;
align-items: center;
z-index: 10;
z-index: 100;
`;

const Modal: React.FC<IProps> = ({ children, title, onClose, clear, closeOnBackground }) => {
const Modal: React.FC<ModalProps> = ({ children, title, onClose, clear, closeOnBackground }) => {
const handleUserKeyPress = useCallback((event, closeModal) => {
const { keyCode } = event;
if (keyCode === 27) {
Expand Down

0 comments on commit 7aeb48e

Please sign in to comment.