fix small review findings

This commit is contained in:
Eduard Heimbuch
2020-06-17 13:27:54 +02:00
parent 94054e9226
commit 1435828e0e
4 changed files with 6 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ const Annotate: FC<Props> = ({ source, repository, baseDate }) => {
node,
stylesheet,
useInlineStyles,
key: `code-segement${i}`
key: `code-segment${i}`
});
if (i + 1 < rows.length) {

View File

@@ -31,6 +31,7 @@ import { DateInput } from "../../useDateFormatter";
import { Repository, AnnotatedLine } from "@scm-manager/ui-types";
import AuthorImage from "./AuthorImage";
import { Action } from "./actions";
import {useTranslation} from "react-i18next";
const PopoverContainer = styled.div`
position: absolute;
@@ -89,6 +90,7 @@ type PopoverProps = {
};
const Popover: FC<PopoverProps> = ({ annotation, offsetTop, repository, baseDate, dispatch }) => {
const [t] = useTranslation("repos");
const [height, setHeight] = useState(125);
const ref = useRef<HTMLDivElement>(null);
useLayoutEffect(() => {
@@ -127,7 +129,7 @@ const Popover: FC<PopoverProps> = ({ annotation, offsetTop, repository, baseDate
</PopoverHeading>
<SmallHr />
<p>
Changeset{" "}
{t("changeset.label") + " "}
<Link to={`/repo/${repository.namespace}/${repository.name}/code/changeset/${annotation.revision}`}>
{shortRevision(annotation.revision)}
</Link>