-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify version number of the dashboard in footer (#3447)
* PBENCH-1092 Specify version number Include the version number in the footer
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
dashboard/src/modules/components/FooterComponent/index.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import "./index.less"; | ||
|
||
import React from "react"; | ||
import { useSelector } from "react-redux"; | ||
|
||
const Footer = () => { | ||
const { endpoints } = useSelector((state) => state.apiEndpoint); | ||
|
||
return ( | ||
<div className="footer-container"> | ||
Version @ <span> {endpoints?.identification}</span> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Footer; |
13 changes: 13 additions & 0 deletions
13
dashboard/src/modules/components/FooterComponent/index.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.footer-container { | ||
width: 100%; | ||
padding: 1.5rem; | ||
background: #151515; | ||
color: #ffffff; | ||
font-size: 0.85em; | ||
overflow-x: hidden; | ||
text-align: center; | ||
|
||
span { | ||
font-style: italic; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters