diff --git a/frontend/components/Footer.js b/frontend/components/Footer.js index 91b2d4d..0af171d 100644 --- a/frontend/components/Footer.js +++ b/frontend/components/Footer.js @@ -1,12 +1,22 @@ import { Grid, Typography } from '@mui/material' import Image from 'next/image' -import React from 'react' +import { React, useEffect, useState } from 'react' import Link from '../components/Link' +import { getVersion } from '../services/git' import useStyles from '../styles/components/Footer' function Footer() { const classes = useStyles() + const [version, setVersion] = useState(null) + + useEffect(() => { + getVersion().then(res => { + console.log(res.version) + return setVersion(res.version) + }) + }, []) + return (