Skip to content

Commit

Permalink
added build date into the footer
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaKhanAbdalli committed Dec 26, 2023
1 parent 7f76203 commit d414ef3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import preval from 'preval.macro'

const Footer = (): React.ReactElement => {
const buildDate = preval`module.exports = new Date().toISOString().slice(0, 19).replace('T', ' ')`
const trimmedAppBuildDate = buildDate.substring(0, buildDate.length - 3)
const trimmedAppBuildDate = `Build Date: ${buildDate.substring(
0,
buildDate.length - 3
)}`

return (
<div
Expand Down

0 comments on commit d414ef3

Please sign in to comment.