change cypress tests to ui only

This commit is contained in:
Eduard Heimbuch
2020-08-10 11:36:46 +02:00
parent 5e7739480b
commit 6ab80236f7
10 changed files with 98 additions and 93 deletions

View File

@@ -33,9 +33,10 @@ type Props = RoutingProps & {
label: string;
title?: string;
icon?: string;
className?: string;
};
const NavLink: FC<Props> = ({ to, activeWhenMatch, activeOnlyWhenExact, icon, label, title }) => {
const NavLink: FC<Props> = ({ to, activeWhenMatch, activeOnlyWhenExact, icon, label, title, className }) => {
const active = useActiveMatch({ to, activeWhenMatch, activeOnlyWhenExact });
const context = useMenuContext();
@@ -52,7 +53,7 @@ const NavLink: FC<Props> = ({ to, activeWhenMatch, activeOnlyWhenExact, icon, la
return (
<li title={collapsed ? title : undefined}>
<Link className={classNames(active ? "is-active" : "", collapsed ? "has-text-centered" : "")} to={to}>
<Link className={classNames(active ? "is-active" : "", collapsed ? "has-text-centered" : "", className)} to={to}>
{showIcon}
{collapsed ? null : label}
</Link>