Add About screen, list of recently opened vaults, category filtering

This commit is contained in:
aet
2022-01-02 00:53:57 -05:00
parent 5883adc2c1
commit d8f2cddb74
27 changed files with 1108 additions and 558 deletions

View File

@ -25,7 +25,6 @@ const ModalContainer = styled.div`
background: var(--page-background);
box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
border-radius: 5px;
max-width: 500px;
margin: 0 auto;
`
const ModalTitle = styled.div`
@ -41,8 +40,9 @@ const ModalContent = styled.div`
export const Modal: React.FC<{
show: boolean
title: string
maxWidth?: number
onClose(): void
}> = ({ show, children, title, onClose }) => {
}> = ({ show, children, title, maxWidth = 700, onClose }) => {
const onBackgroundClick = useCallback(
e => {
if (e.currentTarget === e.target) {
@ -61,7 +61,7 @@ export const Modal: React.FC<{
<>
<ModalBackground />
<ModalBackground2 onClick={onBackgroundClick}>
<ModalContainer>
<ModalContainer style={{ maxWidth }}>
<ModalTitle>{title}</ModalTitle>
<ModalContent>{children}</ModalContent>
</ModalContainer>