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