don't hardcode version number

This commit is contained in:
Esteban Abaroa
2023-04-24 20:00:11 +00:00
parent 41cdc9db3b
commit d9cd805329
7 changed files with 22 additions and 7 deletions
+3 -1
View File
@@ -16,6 +16,8 @@ import getDate from '../../utils/getDate';
import handleQuoteClick from '../../utils/handleQuoteClick';
import handleStyleChange from '../../utils/handleStyleChange';
import useError from '../../hooks/useError';
import packageJson from '../../../package.json'
const {version} = packageJson
const Pending = () => {
@@ -381,7 +383,7 @@ const Pending = () => {
marginTop: "2em",
marginBottom: "2em",
}}>
plebchan v0.1.0. GPL-2.0
plebchan v{version}. GPL-2.0
</div>
</Container>
</>