Skip to content

Commit

Permalink
Use dynamic year for copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwilter committed Mar 4, 2022
1 parent b2e55c8 commit 4dfddcc
Showing 1 changed file with 3 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

0 comments on commit 4dfddcc

Please sign in to comment.