theme - modals, react select, tables

This commit is contained in:
Jan Prochazka
2020-11-12 14:20:02 +01:00
parent a49f429f13
commit a8d88d05db
17 changed files with 148 additions and 83 deletions

View File

@@ -1,12 +1,14 @@
import React from 'react';
import styled from 'styled-components';
import useTheme from '../theme/useTheme';
const Wrapper = styled.div`
border-bottom: 1px solid #ccc;
padding: 15px;
background-color: #eeffff;
background-color: ${(props) => props.theme.modalheader_background};
`;
export default function ModalFooter({ children }) {
return <Wrapper>{children}</Wrapper>;
const theme = useTheme();
return <Wrapper theme={theme}>{children}</Wrapper>;
}