Skip to content

Commit 2024d41

Browse files
authored
ref: Move pagination styles into component (#13560)
1 parent a520878 commit 2024d41

File tree

6 files changed

+16
-20
lines changed

6 files changed

+16
-20
lines changed

src/sentry/static/sentry/app/components/pagination.jsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
import PropTypes from 'prop-types';
22
import React from 'react';
33
import {browserHistory} from 'react-router';
4+
import {css} from 'react-emotion';
45

56
import utils from 'app/utils';
67
import {t} from 'app/locale';
78

9+
const streamCss = css`
10+
margin: 20px 0 0 0;
11+
12+
.icon-arrow-right,
13+
.icon-arrow-left {
14+
font-size: 20px !important;
15+
}
16+
`;
17+
818
export default class Pagination extends React.Component {
919
static propTypes = {
1020
pageLinks: PropTypes.string,
@@ -25,7 +35,7 @@ export default class Pagination extends React.Component {
2535
query,
2636
});
2737
},
28-
className: 'stream-pagination',
38+
className: streamCss,
2939
};
3040

3141
render() {

src/sentry/static/sentry/less/stream.less

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -995,20 +995,6 @@
995995
}
996996
}
997997

998-
/**
999-
* Stream Pagination
1000-
* ============================================================================
1001-
*/
1002-
1003-
.stream-pagination {
1004-
margin: 20px 0 0 0;
1005-
1006-
.icon-arrow-right,
1007-
.icon-arrow-left {
1008-
font-size: 20px !important;
1009-
}
1010-
}
1011-
1012998
/**
1013999
* Empty Stream/Empty Alert box
10141000
* ============================================================================

tests/js/spec/views/__snapshots__/organizationTeamProjects.spec.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ exports[`OrganizationTeamProjects Should render 1`] = `
10841084
</Panel>
10851085
<Pagination
10861086
api={Client {}}
1087-
className="stream-pagination"
1087+
className="css-1yt0wm7-streamCss"
10881088
location={
10891089
Object {
10901090
"query": Object {},

tests/js/spec/views/__snapshots__/projectDebugFiles.spec.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ exports[`ProjectDebugFiles renders 1`] = `
285285
</Component>
286286
</Panel>
287287
<Pagination
288-
className="stream-pagination"
288+
className="css-1yt0wm7-streamCss"
289289
onCursor={[Function]}
290290
/>
291291
</ProjectDebugSymbols>
@@ -349,7 +349,7 @@ exports[`ProjectDebugFiles renders empty 1`] = `
349349
</PanelBody>
350350
</Panel>
351351
<Pagination
352-
className="stream-pagination"
352+
className="css-1yt0wm7-streamCss"
353353
onCursor={[Function]}
354354
/>
355355
</Fragment>

tests/js/spec/views/groupDetails/__snapshots__/groupSimilar.spec.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ exports[`Issues Similar View renders with mocked data 1`] = `
18781878
</div>
18791879
</div>
18801880
<Pagination
1881-
className="stream-pagination"
1881+
className="css-1yt0wm7-streamCss"
18821882
onCursor={[Function]}
18831883
/>
18841884
</div>

tests/js/spec/views/groupDetails/__snapshots__/projectGroupEvents.spec.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ exports[`groupEvents renders 1`] = `
5353
</PanelBody>
5454
</Panel>
5555
<Pagination
56-
className="stream-pagination"
56+
className="css-1yt0wm7-streamCss"
5757
onCursor={[Function]}
5858
/>
5959
</div>

0 commit comments

Comments
 (0)