feat: optimize style of card component.

This commit is contained in:
a.bouhuolia
2021-12-23 11:10:07 +02:00
parent 7150f12a01
commit 1ad2117c37
5 changed files with 18 additions and 18 deletions

View File

@@ -1,11 +1,13 @@
import React from 'react';
import clsx from 'classnames';
import styled from 'styled-components';
export default function Card({ className, children }) {
return <CardRoot className={clsx('card', className)}>{children}</CardRoot>;
return <CardRoot className={className}>{children}</CardRoot>;
}
const CardRoot = styled.div`
padding: 15px;
margin: 15px;
background: #fff;
border: 1px solid #d2dce2;
`;