Refactor CSS (#116)

Refactor CSS files and structure. Also refactors some html and React components for a smarter use of CSS classes.
This commit is contained in:
Riccardo Graziosi
2022-06-08 10:20:36 +02:00
committed by GitHub
parent 35c427d9f6
commit 8e75a85873
61 changed files with 329 additions and 262 deletions

View File

@@ -0,0 +1,21 @@
import * as React from 'react';
interface Props {
children: any;
onClick(e: React.FormEvent): void;
className?: string;
outline?: boolean;
disabled?: boolean;
}
const Button = ({ children, onClick, className = '', outline = false, disabled = false}: Props) => (
<button
onClick={onClick}
className={`${className} btn btn-${outline ? 'outline-' : ''}dark`}
disabled={disabled}
>
{children}
</button>
);
export default Button;