Skip to content

Commit

Permalink
frontend side of the latest version version number on the footer of l…
Browse files Browse the repository at this point in the history
…anding page
  • Loading branch information
regisalbuquerque committed May 4, 2024
1 parent fdb7809 commit ef3eefc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion frontend/components/Footer.js
Original file line number Diff line number Diff line change
@@ -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 (
<footer className={classes.root}>
<Grid
Expand Down Expand Up @@ -54,6 +64,7 @@ function Footer() {
</Grid>
<Grid item className={classes.marginItem}>
<Typography>
<span className={classes.poweredBy}>Release: {version}</span>
<span className={classes.poweredBy}>Powered By</span>
<Link
href="https://www.linea.org.br/"
Expand Down

0 comments on commit ef3eefc

Please sign in to comment.