aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common/button/TextButton.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-15 16:46:12 +0800
committercrupest <crupest@outlook.com>2021-06-15 16:46:12 +0800
commit57a4aa9bc47d3d38f66819f01f41ab10e9673667 (patch)
tree85ea6fb30de4fbb5638be1e3f747aa05ac7dff79 /FrontEnd/src/views/common/button/TextButton.tsx
parent9b2de947e6d16fe8478a3e8316ae4a1136e50948 (diff)
downloadtimeline-57a4aa9bc47d3d38f66819f01f41ab10e9673667.tar.gz
timeline-57a4aa9bc47d3d38f66819f01f41ab10e9673667.tar.bz2
timeline-57a4aa9bc47d3d38f66819f01f41ab10e9673667.zip
...
Diffstat (limited to 'FrontEnd/src/views/common/button/TextButton.tsx')
-rw-r--r--FrontEnd/src/views/common/button/TextButton.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/FrontEnd/src/views/common/button/TextButton.tsx b/FrontEnd/src/views/common/button/TextButton.tsx
index 2014158a..1e2b4873 100644
--- a/FrontEnd/src/views/common/button/TextButton.tsx
+++ b/FrontEnd/src/views/common/button/TextButton.tsx
@@ -12,10 +12,14 @@ function _TextButton(
text,
color,
onClick,
+ className,
+ style,
}: {
text: I18nText;
color?: PaletteColorType;
onClick?: () => void;
+ className?: string;
+ style?: React.CSSProperties;
},
ref: React.ForwardedRef<HTMLButtonElement>
): React.ReactElement | null {
@@ -24,8 +28,9 @@ function _TextButton(
return (
<button
ref={ref}
- className={classNames("cru-text-button", color ?? "primary")}
+ className={classNames("cru-text-button", color ?? "primary", className)}
onClick={onClick}
+ style={style}
>
{convertI18nText(text, t)}
</button>