chore: add date

This commit is contained in:
JimmFly
2023-01-11 17:43:14 +08:00
parent 4e25fa3054
commit a7e6d16930

View File

@@ -76,6 +76,8 @@ export const ContactModal = ({
link: 'https://community.affine.pro', link: 'https://community.affine.pro',
}, },
]; ];
const date = new Date();
const year = date.getFullYear();
return ( return (
<Modal open={open} onClose={onClose} data-testid="contact-us-modal-content"> <Modal open={open} onClose={onClose} data-testid="contact-us-modal-content">
<ModalWrapper <ModalWrapper
@@ -135,7 +137,7 @@ export const ContactModal = ({
{t('How is AFFiNE Alpha different?')} {t('How is AFFiNE Alpha different?')}
</a> </a>
</p> </p>
<p>Copyright &copy; 2022 Toeverything</p> <p>Copyright &copy; {year} Toeverything</p>
</StyledModalFooter> </StyledModalFooter>
</ModalWrapper> </ModalWrapper>
</Modal> </Modal>