1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-26 06:19:36 +02:00

Case-insensitive sorting. App version checking

This commit is contained in:
unknown 2021-06-15 12:36:23 +02:00
parent e884c84aa8
commit 9a1ec76ffd
15 changed files with 104 additions and 11 deletions

View file

@ -6,8 +6,7 @@
border-radius: 4px;
}
.Button:hover,
.Button:focus {
.Button:hover {
cursor: pointer;
background-color: var(--color-accent);
color: var(--color-background);

View file

@ -2,10 +2,20 @@ import classes from './Button.module.css';
interface ComponentProps {
children: string;
click?: any;
}
const Button = (props: ComponentProps): JSX.Element => {
return <button className={classes.Button}>{props.children}</button>
const {
children,
click
} = props;
return (
<button className={classes.Button} onClick={click ? click : () => {}} >
{children}
</button>
)
}
export default Button;