mirror of
https://github.com/pawelmalak/snippet-box.git
synced 2025-12-23 22:18:06 +01:00
Fixed date parsing bug. Small UI fixes.
This commit is contained in:
@@ -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}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user