add cover with toggle

This commit is contained in:
Lachlan Kermode
2019-02-07 12:04:47 +00:00
parent 4badf11999
commit ed9af1cbf6
10 changed files with 85 additions and 60 deletions

View File

@@ -0,0 +1,9 @@
import React from 'react'
export default ({ showing, children }) => {
return (
<div className={`cover-container ${showing ? 'showing' : ''}`}>
{children}
</div>
)
}