Skip to content
Snippets Groups Projects
Unverified Commit cfc65993 authored by Alexander Lesnenko's avatar Alexander Lesnenko Committed by GitHub
Browse files

fix link types (#19239)

parent b912e4f9
No related branches found
No related tags found
No related merge requests found
import cx from "classnames"; import cx from "classnames";
import React, { ReactNode } from "react"; import React, { CSSProperties, HTMLProps, ReactNode } from "react";
import { Link as ReactRouterLink, LinkProps } from "react-router"; import { Link as ReactRouterLink } from "react-router";
import styled from "styled-components"; import styled from "styled-components";
import { color, display, hover, space } from "styled-system"; import { color, display, hover, space } from "styled-system";
import Tooltip from "metabase/components/Tooltip"; import Tooltip from "metabase/components/Tooltip";
import { stripLayoutProps } from "metabase/lib/utils"; import { stripLayoutProps } from "metabase/lib/utils";
interface Props extends LinkProps { interface Props extends HTMLProps<HTMLAnchorElement> {
to: string; to: string;
disabled?: boolean; disabled?: boolean;
className?: string; className?: string;
children?: ReactNode; children?: ReactNode;
tooltip?: string; tooltip?: string;
activeClassName?: string;
activeStyle?: CSSProperties;
onlyActiveOnIndex?: boolean;
} }
function BaseLink({ function BaseLink({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment