/* * Copyright (c) 2020 - present Cloudogu GmbH * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ import React, { FC } from "react"; import classNames from "classnames"; import styled from "styled-components"; import { ExtensionPoint, extensionPoints } from "@scm-manager/ui-extensions"; import { Branch, Changeset, File, Repository } from "@scm-manager/ui-types"; import ChangesetButtonGroup from "./ChangesetButtonGroup"; import SingleChangeset from "./SingleChangeset"; import { useKeyboardIteratorTarget } from "@scm-manager/ui-shortcuts"; type Props = { repository: Repository; changeset: Changeset; file?: File; branch?: Branch; }; const Wrapper = styled.div` // & references parent rule // have a look at https://cssinjs.org/jss-plugin-nested?v=v10.0.0-alpha.9 & + & { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(219, 219, 219, 0.5); } `; const ChangesetRow: FC = ({ repository, changeset, file, branch }) => { const ref = useKeyboardIteratorTarget(); return (
name="changeset.right" props={{ repository, changeset, }} renderAll={true} />
); }; export default ChangesetRow;