Skip to content

Commit

Permalink
Use dynamic year for copyright (#391)
Browse files Browse the repository at this point in the history
* Use dynamic year for copyright

* pallets/markupsafe#284
  • Loading branch information
alanwilter authored Mar 4, 2022
1 parent b2e55c8 commit ed72040
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/General/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ import { useTranslation, Trans } from 'react-i18next';
import i18next from 'i18next';

function Copyright() {
var year = new Date().getFullYear();
return (
<Typography variant="body2" align="left">
{'© '}
2021 Phenopolis Limited. Registered company number 11541164.
{year} Phenopolis Limited. Registered company number 11541164.
</Typography>
);
}

export default function StickyFooter() {
const location = useLocation();

React.useEffect(() => {}, [location.pathname]);
React.useEffect(() => { }, [location.pathname]);

const { t } = useTranslation();

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ boto3>=1.16.43
pytest-cov>=2.10,<2.11
black==19.10b0
flake8>=3.8,<3.9
markupsafe<=2.0.1

0 comments on commit ed72040

Please sign in to comment.