1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
This commit is contained in:
Matthias Kretschmann 2019-04-15 22:46:49 +02:00
parent 78c89ec28f
commit dde4086827
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 11 additions and 13 deletions

View File

@ -127,7 +127,7 @@ const categoryImageFile = (category: string) => {
case 'Transportation': case 'Transportation':
case 'transport': case 'transport':
return transport return transport
case 'Urban Plannin': case 'Urban Planning':
case 'urbanplanning': case 'urbanplanning':
return urbanplanning return urbanplanning
case 'Visual Arts & Design': case 'Visual Arts & Design':

View File

@ -3,9 +3,9 @@
.pagination { .pagination {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center;
margin-top: $spacer * 2; margin-top: $spacer * 2;
margin-bottom: $spacer; margin-bottom: $spacer;
justify-content: center;
padding-left: 0; padding-left: 0;
li { li {
@ -42,8 +42,14 @@
} }
} }
.current { .current,
.prev,
.next,
.break {
composes: number; composes: number;
}
.current {
cursor: default; cursor: default;
pointer-events: none; pointer-events: none;
@ -56,19 +62,10 @@
} }
} }
.prev {
composes: number;
}
.next { .next {
composes: number;
text-align: right; text-align: right;
} }
.prevNextDisabled { .prevNextDisabled {
opacity: 0; opacity: 0;
} }
.break {
composes: number;
}

View File

@ -4,7 +4,7 @@ import Pagination from './Pagination'
describe('Button', () => { describe('Button', () => {
it('renders without crashing', () => { it('renders without crashing', () => {
const { container, getByRole } = render( const { container } = render(
<Pagination <Pagination
totalPages={20} totalPages={20}
currentPage={1} currentPage={1}
@ -12,5 +12,6 @@ describe('Button', () => {
/> />
) )
expect(container.firstChild).toBeInTheDocument() expect(container.firstChild).toBeInTheDocument()
container.firstChild && expect(container.firstChild.nodeName).toBe('UL')
}) })
}) })