adjust displayed links depending on type of change

This commit is contained in:
Konstantin Schaper
2020-08-10 11:50:56 +02:00
parent cef36d2763
commit 87f3d78148
8 changed files with 57 additions and 30 deletions

View File

@@ -38,11 +38,10 @@ const Button = styled(Link)`
type Props = {
link: string;
tooltip: string;
};
const JumpToFileButton: FC<Props> = ({ link }) => {
const [t] = useTranslation("repos");
const tooltip = t("diff.jumpToFile");
const JumpToFileButton: FC<Props> = ({ link, tooltip }) => {
return (
<Tooltip message={tooltip} location="top">
<Button aria-label={tooltip} className="button" to={link}>