mirror of
https://github.com/seigler/triplebyte-react-spa
synced 2025-07-26 23:26:10 +00:00
feat: sync redux to localstorage
This commit is contained in:
parent
9242ce66ec
commit
ff4a941dd8
10 changed files with 230 additions and 149 deletions
20
components/cardMover.js
Normal file
20
components/cardMover.js
Normal 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>
|
||||
</>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue