mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-23 00:39:47 +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 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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user