aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common/Card.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-07-31 20:57:11 +0800
committercrupest <crupest@outlook.com>2023-07-31 20:57:11 +0800
commit00c3736c3818053859710a2fbaec837dd9cbb586 (patch)
tree46d4b5efd2a82f9da67f8eea508e5b50c76b21ca /FrontEnd/src/views/common/Card.tsx
parentf0f1984405db795d5a60bd03d05bec524dc12db3 (diff)
downloadtimeline-00c3736c3818053859710a2fbaec837dd9cbb586.tar.gz
timeline-00c3736c3818053859710a2fbaec837dd9cbb586.tar.bz2
timeline-00c3736c3818053859710a2fbaec837dd9cbb586.zip
...
Diffstat (limited to 'FrontEnd/src/views/common/Card.tsx')
-rw-r--r--FrontEnd/src/views/common/Card.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/FrontEnd/src/views/common/Card.tsx b/FrontEnd/src/views/common/Card.tsx
index 35e605af..381e58e7 100644
--- a/FrontEnd/src/views/common/Card.tsx
+++ b/FrontEnd/src/views/common/Card.tsx
@@ -16,11 +16,10 @@ export default function Card({
containerRef,
...otherProps
}: CardProps) {
- color = color ?? "primary";
return (
<div
ref={containerRef}
- className={classNames("cru-card", `cru-${color}`, className)}
+ className={classNames("cru-card", color && `cru-${color}`, className)}
{...otherProps}
>
{children}