mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
adjust displayed links depending on type of change
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user