Skip to content

Commit

Permalink
add pogues version
Browse files Browse the repository at this point in the history
  • Loading branch information
BulotF committed Dec 20, 2023
1 parent 41f2323 commit e2551f9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/layout/header/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Link } from 'react-router-dom';
import logo from 'layout/header/logo-insee.png';
import UserConnectionContainer from 'layout/user/user-connection-container';
import Dictionary from 'utils/dictionary/dictionary';
import { poguesFrontVersion } from 'utils/version';

function Header() {
return (
Expand All @@ -18,7 +19,10 @@ function Header() {
Pogues
</Link>
</h2>
<h6>{Dictionary.headerSubtitle}</h6>
<h6>
{Dictionary.headerSubtitle}
<span className="pogues-version">{poguesFrontVersion}</span>
</h6>
</div>
<div className="header-help">
<a
Expand Down
6 changes: 6 additions & 0 deletions src/scss/inc/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,11 @@
.header-user {
@include make-xs-column(3);
}

.pogues-version {
margin-left: 5px;
color: $color-grey_01;
font-style: italic;
}
}
}
3 changes: 3 additions & 0 deletions src/utils/version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import packageVersion from '../../package.json';

export const poguesFrontVersion = packageVersion.version;

0 comments on commit e2551f9

Please sign in to comment.