feat: sync redux to localstorage

This commit is contained in:
Joshua Seigler 2020-02-19 02:00:21 -05:00
parent 9242ce66ec
commit ff4a941dd8
10 changed files with 230 additions and 149 deletions

20
components/cardMover.js Normal file
View file

@ -0,0 +1,20 @@
import React from 'react';
export default ({ direction, action }) => {
return <>
<a className='cardMover' onClick={action}>
{ direction === 'left' ? '〈' : '〉' }
</a>
<style jsx>{`
.cardMover {
display: flex;
cursor: pointer;
padding-${direction}: 8px;
text-align: center;
flex-direction: column;
justify-content: center;
font-size: 1.5em;
}
`}</style>
</>;
}