mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
fix small review findings
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user