GPTCharts Update

This commit is contained in:
zkldi
2021-09-22 12:25:16 +01:00
parent f35b99649c
commit 8b3820f08c
33 changed files with 887 additions and 144 deletions
+6 -2
View File
@@ -1,4 +1,4 @@
import React from "react";
import React, { CSSProperties } from "react";
import { Link } from "react-router-dom";
import { JustChildren } from "types/react";
@@ -6,12 +6,16 @@ export default function LinkButton({
to,
className = "btn-primary",
children,
style,
onClick,
}: {
to: string;
className?: string;
style?: CSSProperties;
onClick?: () => void;
} & JustChildren) {
return (
<Link to={to} className={`btn ${className}`}>
<Link onClick={onClick} to={to} className={`btn ${className}`} style={style}>
{children}
</Link>
);