pager styles jsx to css

This commit is contained in:
tmshv committed 2020-02-18 17:12:22 +03:00
1 parent 0ba0d74ea7
commit 4bf3b55557
2 files changed
+13 -14

No files matched your search

+4 -14
View File
@@ -1,3 +1,5 @@
import './styles.css'
import Link from 'next/link'
const text = ['↑', '↓']
@@ -14,20 +16,8 @@ export type PagerProps = {
}
export const Pager: React.FC<PagerProps> = ({ url, position }) => (
<div>
<style jsx>{`
div {
text-align: center;
margin-top: var(--size-m);
margin-bottom: var(--size-m);
}
span {
margin: 0 var(--size-s);
}
`}</style>
<span>
<div className={'pager'}>
<span className={'pager icon'}>
{text[i(position)]}
</span>
+9
View File
@@ -0,0 +1,9 @@
.pager {
text-align: center;
margin-top: var(--size-m);
margin-bottom: var(--size-m);
}
.pager .icon {
margin: 0 var(--size-s);
}