mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 04:46:02 +00:00
theme
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;
|
||||
border-top: 1px solid #ccc;
|
||||
border-bottom: 1px solid ${(props) => props.theme.border};
|
||||
border-top: 1px solid ${(props) => props.theme.border};
|
||||
padding: 15px;
|
||||
`;
|
||||
|
||||
export default function ModalContent({ children }) {
|
||||
return <Wrapper>{children}</Wrapper>;
|
||||
const theme = useTheme();
|
||||
return <Wrapper theme={theme}>{children}</Wrapper>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user