aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common/button/Button.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-26 19:54:24 +0800
committercrupest <crupest@outlook.com>2021-06-26 19:54:24 +0800
commitc3f17f1dd1099c244e36d09b14c3e131d703830e (patch)
tree9f6b58f3bf16bcd119f22475625464537aa2b42b /FrontEnd/src/views/common/button/Button.tsx
parenta168336c0761b263ee5371218cbf6da236c0acce (diff)
downloadtimeline-c3f17f1dd1099c244e36d09b14c3e131d703830e.tar.gz
timeline-c3f17f1dd1099c244e36d09b14c3e131d703830e.tar.bz2
timeline-c3f17f1dd1099c244e36d09b14c3e131d703830e.zip
...
Diffstat (limited to 'FrontEnd/src/views/common/button/Button.tsx')
-rw-r--r--FrontEnd/src/views/common/button/Button.tsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/FrontEnd/src/views/common/button/Button.tsx b/FrontEnd/src/views/common/button/Button.tsx
index 11710647..a39ef8a7 100644
--- a/FrontEnd/src/views/common/button/Button.tsx
+++ b/FrontEnd/src/views/common/button/Button.tsx
@@ -6,16 +6,19 @@ import { calculateProps, CommonButtonProps } from "./common";
import "./Button.css";
function _Button(
- props: CommonButtonProps & { customButtonClassName?: string },
+ props: CommonButtonProps & {
+ outline?: boolean;
+ customButtonClassName?: string;
+ },
ref: React.ForwardedRef<HTMLButtonElement>
): React.ReactElement | null {
const { t } = useTranslation();
- const { customButtonClassName, ...otherProps } = props;
+ const { customButtonClassName, outline, ...otherProps } = props;
const { newProps, children } = calculateProps(
otherProps,
- customButtonClassName ?? "cru-button",
+ customButtonClassName ?? "cru-button" + (outline ? " outline" : ""),
t
);