Skip to content

Commit b69051b

Browse files
Merge pull request #593 from catho/QTM-715
feat(Qtm 715): Migrated to css modules
2 parents 0c79e9f + ebb232f commit b69051b

File tree

251 files changed

+1186
-2520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+1186
-2520
lines changed
-2.27 KB
-145 Bytes
-58 Bytes
-42 Bytes
-46 Bytes
-162 Bytes
-5.58 KB
-3.06 KB
-4.49 KB
-663 Bytes
-615 Bytes
-686 Bytes
-107 Bytes
-86 Bytes
-86 Bytes
-228 Bytes
-347 Bytes
-1.18 KB
-806 Bytes
-475 Bytes
-227 Bytes
-399 Bytes
-1.27 KB
-111 Bytes
-107 Bytes
-391 Bytes
-367 Bytes
-460 Bytes
-1.25 KB
-1.18 KB
-165 Bytes
-1.42 KB
-126 Bytes
-537 Bytes
-667 Bytes
-279 Bytes
-271 Bytes
-528 Bytes
-269 Bytes
-539 Bytes
-429 Bytes
-702 Bytes
-769 Bytes
-670 Bytes
-774 Bytes
-593 Bytes
-725 Bytes
-624 Bytes
-202 Bytes
-284 Bytes
-616 Bytes
-587 Bytes
-703 Bytes
-617 Bytes
-9 Bytes
-10 Bytes

components/Pagination/Pagination.jsx

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
import { Component } from 'react';
22
import PropTypes from 'prop-types';
3-
import styled from 'styled-components';
43

4+
import classNames from 'classnames';
55
import { Hide } from '../Grid';
66
import Desktop from './sub-components/Desktop';
77
import Mobile from './sub-components/Mobile';
8-
9-
const Wrapper = styled.nav`
10-
align-items: center;
11-
display: flex;
12-
justify-content: center;
13-
`;
8+
import styles from './Pagination.module.css';
149

1510
class Pagination extends Component {
1611
constructor(props) {
@@ -36,6 +31,7 @@ class Pagination extends Component {
3631
hideLastPagination,
3732
...props
3833
} = this.props;
34+
const wrapperClass = classNames(styles.wrapper);
3935

4036
const handlePageClick = (page) => (e) => {
4137
if (!onPageClick) {
@@ -76,15 +72,15 @@ class Pagination extends Component {
7672
return (
7773
<>
7874
<Hide xsmall small>
79-
<Wrapper aria-label={ariaLabel} {...props}>
75+
<nav className={wrapperClass} aria-label={ariaLabel} {...props}>
8076
<Desktop {...attributes} />
81-
</Wrapper>
77+
</nav>
8278
</Hide>
8379

8480
<Hide medium large>
85-
<Wrapper aria-label={ariaLabel} {...props}>
81+
<nav className={wrapperClass} aria-label={ariaLabel} {...props}>
8682
<Mobile {...attributes} />
87-
</Wrapper>
83+
</nav>
8884
</Hide>
8985
</>
9086
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.wrapper {
2+
align-items: center;
3+
display: flex;
4+
justify-content: center;
5+
}

0 commit comments

Comments
 (0)