mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-22 16:29:51 +01:00
Revert changes to production environment introduced in #2098
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user