Revert changes to production environment introduced in #2098

This commit is contained in:
Konstantin Schaper
2022-08-05 10:53:06 +02:00
parent 550ebefd93
commit 1d9cd12821

View File

@@ -23,10 +23,9 @@
*/
import React, { FC, useState } from "react";
import { useHistory, useLocation } from "react-router-dom";
import { urls } from "./index";
import { FilterInput, Select } from "./forms";
import { ButtonVariants, LinkButton } from "@scm-manager/ui-buttons";
import classNames from "classnames";
import { Button, urls } from "./index";
import { FilterInput, Select } from "./forms";
type Props = {
showCreateButton: boolean;
@@ -55,7 +54,7 @@ const OverviewPageActions: FC<Props> = ({
label,
testId,
searchPlaceholder,
groupAriaLabelledby,
groupAriaLabelledby
}) => {
const history = useHistory();
const location = useLocation();
@@ -67,7 +66,7 @@ const OverviewPageActions: FC<Props> = ({
<Select
ariaLabelledby={groupAriaLabelledby}
className="is-fullwidth"
options={groups.map((g) => ({ value: g, label: g }))}
options={groups.map(g => ({ value: g, label: g }))}
value={currentGroup}
onChange={groupSelected}
/>
@@ -77,10 +76,8 @@ const OverviewPageActions: FC<Props> = ({
const renderCreateButton = () => {
if (showCreateButton) {
return (
<div className={classNames("control", "column")}>
<LinkButton variant={ButtonVariants.PRIMARY} to={createLink || `${link}create/`}>
{label}
</LinkButton>
<div className={classNames("input-button", "control", "column")}>
<Button label={label} link={createLink || `${link}create/`} color="primary" />
</div>
);
}