Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dynamic year for copyright #391

Merged
merged 2 commits into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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