Use tabWidth 4 without actual tabs.

This commit is contained in:
Paul
2021-07-05 11:25:20 +01:00
parent a9ce64c9fe
commit 14809f1989
180 changed files with 16619 additions and 16622 deletions

View File

@@ -1,16 +1,16 @@
import { Link, LinkProps } from "react-router-dom";
type Props = LinkProps &
JSX.HTMLAttributes<HTMLAnchorElement> & {
active: boolean;
};
JSX.HTMLAttributes<HTMLAnchorElement> & {
active: boolean;
};
export default function ConditionalLink(props: Props) {
const { active, ...linkProps } = props;
const { active, ...linkProps } = props;
if (active) {
return <a>{props.children}</a>;
} else {
return <Link {...linkProps} />;
}
if (active) {
return <a>{props.children}</a>;
} else {
return <Link {...linkProps} />;
}
}