add commitRef for netlify to all views

This commit is contained in:
plebeius.eth
2023-09-10 14:12:25 +02:00
parent 935e652211
commit d9f62a346e
13 changed files with 25 additions and 14 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ import handleStyleChange from '../../utils/handleStyleChange';
import useGeneralStore from '../../hooks/stores/useGeneralStore';
import packageJson from '../../../package.json';
const {version} = packageJson;
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
const Description = () => {
@@ -511,7 +512,7 @@ const Description = () => {
</>
</NavBar>
<div id="version">
plebchan v{version}. GPL-2.0
plebchan v{version}{commitRef}. GPL-2.0
</div>
<div className="footer-links"
style={{