modal styles

This commit is contained in:
Jan Prochazka
2020-05-13 21:04:13 +02:00
parent 2a0437e8b5
commit 7d844fe892
12 changed files with 142 additions and 51 deletions

View File

@@ -0,0 +1,27 @@
import React from 'react';
import styled from 'styled-components';
const Wrapper = styled.div`
font-size: 15pt;
padding: 15px;
display: flex;
justify-content: space-between;
`;
const CloseWrapper = styled.div`
font-size: 12pt;
&:hover {
background-color: #blue;
}
`;
export default function ModalHeader({ children, modalState }) {
return (
<Wrapper>
<div>{children}</div>
<CloseWrapper onClick={modalState.close}>
<i className="fas fa-times" />
</CloseWrapper>
</Wrapper>
);
}