Fixed date parsing bug. Small UI fixes.

This commit is contained in:
Paweł Malak
2021-10-14 01:46:48 +02:00
parent 3b22cd9442
commit b04d042255
4 changed files with 32 additions and 22 deletions

View File

@@ -1,12 +1,15 @@
import { ReactNode } from 'react';
interface Props {
title?: string;
children?: JSX.Element | JSX.Element[];
children?: ReactNode;
classes?: string;
bodyClasses?: string;
}
export const Card = (props: Props): JSX.Element => {
const { title, children, classes, bodyClasses } = props;
const { title, children, classes = '', bodyClasses = '' } = props;
const parentClasses = `card mb-3 ${classes}`;
const childClasses = `card-body ${bodyClasses}`;