mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
fix review findings
This commit is contained in:
@@ -32,11 +32,12 @@ type Props = RouteComponentProps & {
|
||||
showCreateButton: boolean;
|
||||
link: string;
|
||||
label?: string;
|
||||
testId?: string;
|
||||
};
|
||||
|
||||
class OverviewPageActions extends React.Component<Props> {
|
||||
render() {
|
||||
const { history, location, link } = this.props;
|
||||
const { history, location, link, testId } = this.props;
|
||||
return (
|
||||
<>
|
||||
<FilterInput
|
||||
@@ -44,6 +45,7 @@ class OverviewPageActions extends React.Component<Props> {
|
||||
filter={filter => {
|
||||
history.push(`/${link}/?q=${filter}`);
|
||||
}}
|
||||
testId={testId + "-filter"}
|
||||
/>
|
||||
{this.renderCreateButton()}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user