mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
move StatePaginator
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
//@flow
|
//@flow
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { translate } from "react-i18next";
|
import { translate } from "react-i18next";
|
||||||
import type { PagedCollection } from "@scm-manager/ui-types";
|
import type { PagedCollection } from "../../ui-types/src";
|
||||||
import { Button } from "@scm-manager/ui-components";
|
import { Button } from "./index";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
collection: PagedCollection,
|
collection: PagedCollection,
|
||||||
@@ -16,6 +16,8 @@ export { default as MailLink } from "./MailLink.js";
|
|||||||
export { default as Notification } from "./Notification.js";
|
export { default as Notification } from "./Notification.js";
|
||||||
export { default as Paginator } from "./Paginator.js";
|
export { default as Paginator } from "./Paginator.js";
|
||||||
export { default as LinkPaginator } from "./LinkPaginator.js";
|
export { default as LinkPaginator } from "./LinkPaginator.js";
|
||||||
|
export { default as StatePaginator } from "./StatePaginator.js";
|
||||||
|
|
||||||
export { default as ProtectedRoute } from "./ProtectedRoute.js";
|
export { default as ProtectedRoute } from "./ProtectedRoute.js";
|
||||||
export { default as Help } from "./Help";
|
export { default as Help } from "./Help";
|
||||||
export { default as HelpIcon } from "./HelpIcon";
|
export { default as HelpIcon } from "./HelpIcon";
|
||||||
|
|||||||
@@ -37,6 +37,10 @@ const styles = {
|
|||||||
},
|
},
|
||||||
marginInHeader: {
|
marginInHeader: {
|
||||||
marginRight: "0.5em"
|
marginRight: "0.5em"
|
||||||
|
},
|
||||||
|
isVerticalCenter: {
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -80,7 +84,7 @@ class Content extends React.Component<Props, State> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<span className={classes.pointer}>
|
<span className={classes.pointer}>
|
||||||
<article className="media">
|
<article className={classNames("media", classes.isVerticalCenter)}>
|
||||||
<div className="media-content" onClick={this.toggleCollapse}>
|
<div className="media-content" onClick={this.toggleCollapse}>
|
||||||
<i
|
<i
|
||||||
className={classNames(
|
className={classNames(
|
||||||
|
|||||||
@@ -6,10 +6,13 @@ import type {
|
|||||||
Repository,
|
Repository,
|
||||||
PagedCollection
|
PagedCollection
|
||||||
} from "@scm-manager/ui-types";
|
} from "@scm-manager/ui-types";
|
||||||
import { ErrorNotification, Loading } from "@scm-manager/ui-components";
|
import {
|
||||||
|
ErrorNotification,
|
||||||
|
Loading,
|
||||||
|
StatePaginator
|
||||||
|
} from "@scm-manager/ui-components";
|
||||||
import { getHistory } from "./history";
|
import { getHistory } from "./history";
|
||||||
import ChangesetList from "../../components/changesets/ChangesetList";
|
import ChangesetList from "../../components/changesets/ChangesetList";
|
||||||
import StatePaginator from "../components/content/StatePaginator";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
file: File,
|
file: File,
|
||||||
|
|||||||
Reference in New Issue
Block a user