mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-14 10:09:09 +03:00
GPTCharts Update
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user