aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/components/AppBar.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-09-21 23:49:12 +0800
committercrupest <crupest@outlook.com>2023-09-21 23:49:12 +0800
commitd477c7270c90b190ed82b13f48f39a05d83503d2 (patch)
tree572f74b2adc75247b9d1c9a8965e3de2559d4160 /FrontEnd/src/components/AppBar.tsx
parenta8a8385cd959e4d9d57b8a35381d2851049c07ff (diff)
downloadtimeline-d477c7270c90b190ed82b13f48f39a05d83503d2.tar.gz
timeline-d477c7270c90b190ed82b13f48f39a05d83503d2.tar.bz2
timeline-d477c7270c90b190ed82b13f48f39a05d83503d2.zip
Fix #1394.
Diffstat (limited to 'FrontEnd/src/components/AppBar.tsx')
-rw-r--r--FrontEnd/src/components/AppBar.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/FrontEnd/src/components/AppBar.tsx b/FrontEnd/src/components/AppBar.tsx
index d40c8105..6ea8bdac 100644
--- a/FrontEnd/src/components/AppBar.tsx
+++ b/FrontEnd/src/components/AppBar.tsx
@@ -37,7 +37,8 @@ function AppBarNavLink({
className={({ isActive }) => classnames(className, isActive && "active")}
onClick={onClick}
>
- {children != null ? children : c(label)}
+ {children}
+ {label && c(label)}
</NavLink>
);
}