mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 11:35:57 +01:00
Rename ChangesetTable -> ChangesetList
This commit is contained in:
@@ -9,7 +9,7 @@ type Props = {
|
|||||||
changesets: Changeset[]
|
changesets: Changeset[]
|
||||||
};
|
};
|
||||||
|
|
||||||
class ChangesetTable extends React.Component<Props> {
|
class ChangesetList extends React.Component<Props> {
|
||||||
render() {
|
render() {
|
||||||
const { repository, changesets } = this.props;
|
const { repository, changesets } = this.props;
|
||||||
const content = changesets.map((changeset, index) => {
|
const content = changesets.map((changeset, index) => {
|
||||||
@@ -19,4 +19,4 @@ class ChangesetTable extends React.Component<Props> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ChangesetTable;
|
export default ChangesetList;
|
||||||
@@ -21,7 +21,7 @@ import {
|
|||||||
getBranchNames
|
getBranchNames
|
||||||
} from "../../repos/modules/branches";
|
} from "../../repos/modules/branches";
|
||||||
import type { PagedCollection, Repository } from "@scm-manager/ui-types";
|
import type { PagedCollection, Repository } from "@scm-manager/ui-types";
|
||||||
import ChangesetTable from "../components/ChangesetTable";
|
import ChangesetList from "../components/ChangesetList";
|
||||||
import DropDown from "../components/DropDown";
|
import DropDown from "../components/DropDown";
|
||||||
import { withRouter } from "react-router-dom";
|
import { withRouter } from "react-router-dom";
|
||||||
|
|
||||||
@@ -43,8 +43,7 @@ class Changesets extends React.Component<State, Props> {
|
|||||||
this.state = {};
|
this.state = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
onPageChange = (link: string) => {
|
onPageChange = (link: string) => {};
|
||||||
};
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const { namespace, name } = this.props.repository;
|
const { namespace, name } = this.props.repository;
|
||||||
const branchName = this.props.match.params.branch;
|
const branchName = this.props.match.params.branch;
|
||||||
@@ -88,12 +87,12 @@ class Changesets extends React.Component<State, Props> {
|
|||||||
preselectedOption={branch}
|
preselectedOption={branch}
|
||||||
optionSelected={branch => this.branchChanged(branch)}
|
optionSelected={branch => this.branchChanged(branch)}
|
||||||
/>
|
/>
|
||||||
<ChangesetTable repository={repository} changesets={changesets} />
|
<ChangesetList repository={repository} changesets={changesets} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return <ChangesetTable changesets={changesets} />;
|
return <ChangesetList changesets={changesets} />;
|
||||||
};
|
};
|
||||||
|
|
||||||
renderPaginator() {
|
renderPaginator() {
|
||||||
|
|||||||
Reference in New Issue
Block a user