Add app version in footer

This commit is contained in:
2021-11-25 19:43:04 +00:00
parent c1d8397aa4
commit 07d9154a19
2 changed files with 3 additions and 0 deletions

2
.env Normal file
View File

@@ -0,0 +1,2 @@
REACT_APP_VERSION=$npm_package_version
REACT_APP_NAME=$npm_package_name

View File

@@ -12,6 +12,7 @@ export default function Footer(props) {
<Link to="/privacy">Privacy policy</Link> <Link to="/privacy">Privacy policy</Link>
</> </>
} }
<span>v{process.env.REACT_APP_VERSION}</span>
</footer> </footer>
) )
} }