mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 09:56:00 +00:00
theme - modals, react select, tables
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user