remove duplicate links in footer

This commit is contained in:
Eduard Heimbuch
2020-08-13 10:26:04 +02:00
parent 6a3712e029
commit 50a487dd8f

View File

@@ -97,8 +97,6 @@ const Footer: FC<Props> = ({ me, version, links }) => {
<section className="section container">
<div className="columns is-size-7">
<FooterSection title={meSectionTile}>
<NavLink to="/me" label={t("footer.user.profile")} />
<NavLink to="/me/settings/password" label={t("profile.changePasswordNavLink")} />
<NavLink to="/me" label={t("footer.user.profile")} testId="footer-user-profile" />
{me?._links?.password && <NavLink to="/me/settings/password" label={t("profile.changePasswordNavLink")} />}
{me?._links?.publicKeys && <NavLink to="/me/settings/publicKeys" label={t("profile.publicKeysNavLink")} />}