Refactor base styles
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import styled from 'styled-components';
|
||||
import styled, { injectGlobal } from 'styled-components';
|
||||
import ReactModal from 'react-modal';
|
||||
import { color } from 'shared/styles/constants';
|
||||
import { fadeAndScaleIn } from 'shared/styles/animations';
|
||||
@ -15,6 +15,12 @@ type Props = {
|
||||
onRequestClose: () => void,
|
||||
};
|
||||
|
||||
injectGlobal`
|
||||
.ReactModal__Body--open {
|
||||
overflow: hidden;
|
||||
}
|
||||
`;
|
||||
|
||||
const Modal = ({
|
||||
children,
|
||||
isOpen,
|
||||
|
Reference in New Issue
Block a user