Skip to content

Commit

Permalink
💬 Add current year to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Apr 2, 2024
1 parent d5f0354 commit 9877023
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bundleviewer.octoprint.org",
"version": "1.5.0",
"version": "1.5.1",
"private": true,
"dependencies": {
"@emotion/react": "^11.5.0",
Expand Down
4 changes: 3 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ function Main({
}) {
const classes = useStyles();

const currentYear = new Date().getFullYear();

const MainView = () => {
if (error) {
console.log("Rendering error screen");
Expand Down Expand Up @@ -354,7 +356,7 @@ function Main({
</Container>
</main>
<footer className={classes.footer}>
© 2021{" "}
© 2021-{currentYear}{" "}
<Link
href="https://octoprint.org"
target="_blank"
Expand Down

0 comments on commit 9877023

Please sign in to comment.