Skip to content

Commit

Permalink
ref: Move pagination styles into component (#13560)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnagara authored Jun 6, 2019
1 parent a520878 commit 2024d41
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 20 deletions.
12 changes: 11 additions & 1 deletion src/sentry/static/sentry/app/components/pagination.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
import PropTypes from 'prop-types';
import React from 'react';
import {browserHistory} from 'react-router';
import {css} from 'react-emotion';

import utils from 'app/utils';
import {t} from 'app/locale';

const streamCss = css`
margin: 20px 0 0 0;
.icon-arrow-right,
.icon-arrow-left {
font-size: 20px !important;
}
`;

export default class Pagination extends React.Component {
static propTypes = {
pageLinks: PropTypes.string,
Expand All @@ -25,7 +35,7 @@ export default class Pagination extends React.Component {
query,
});
},
className: 'stream-pagination',
className: streamCss,
};

render() {
Expand Down
14 changes: 0 additions & 14 deletions src/sentry/static/sentry/less/stream.less
Original file line number Diff line number Diff line change
Expand Up @@ -995,20 +995,6 @@
}
}

/**
* Stream Pagination
* ============================================================================
*/

.stream-pagination {
margin: 20px 0 0 0;

.icon-arrow-right,
.icon-arrow-left {
font-size: 20px !important;
}
}

/**
* Empty Stream/Empty Alert box
* ============================================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ exports[`OrganizationTeamProjects Should render 1`] = `
</Panel>
<Pagination
api={Client {}}
className="stream-pagination"
className="css-1yt0wm7-streamCss"
location={
Object {
"query": Object {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ exports[`ProjectDebugFiles renders 1`] = `
</Component>
</Panel>
<Pagination
className="stream-pagination"
className="css-1yt0wm7-streamCss"
onCursor={[Function]}
/>
</ProjectDebugSymbols>
Expand Down Expand Up @@ -349,7 +349,7 @@ exports[`ProjectDebugFiles renders empty 1`] = `
</PanelBody>
</Panel>
<Pagination
className="stream-pagination"
className="css-1yt0wm7-streamCss"
onCursor={[Function]}
/>
</Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,7 @@ exports[`Issues Similar View renders with mocked data 1`] = `
</div>
</div>
<Pagination
className="stream-pagination"
className="css-1yt0wm7-streamCss"
onCursor={[Function]}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ exports[`groupEvents renders 1`] = `
</PanelBody>
</Panel>
<Pagination
className="stream-pagination"
className="css-1yt0wm7-streamCss"
onCursor={[Function]}
/>
</div>
Expand Down

0 comments on commit 2024d41

Please sign in to comment.