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 'transport':
return transport
case 'Urban Plannin':
case 'Urban Planning':
case 'urbanplanning':
return urbanplanning
case 'Visual Arts & Design':

View File

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

View File

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