mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
feat: add version numebr on sidebar footer.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bigcapital-client",
|
"name": "bigcapital-client",
|
||||||
"version": "1.2.0",
|
"version": "1.5.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "7.8.4",
|
"@babel/core": "7.8.4",
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import SidebarContainer from 'components/Sidebar/SidebarContainer';
|
import SidebarContainer from 'components/Sidebar/SidebarContainer';
|
||||||
import SidebarHead from 'components/Sidebar/SidebarHead';
|
import SidebarHead from 'components/Sidebar/SidebarHead';
|
||||||
import SidebarMenu from 'components/Sidebar/SidebarMenu';
|
import SidebarMenu from 'components/Sidebar/SidebarMenu';
|
||||||
@@ -17,7 +18,20 @@ export default function Sidebar({ dashboardContentRef }) {
|
|||||||
<SidebarMenu menu={menu} />
|
<SidebarMenu menu={menu} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="sidebar__version">0.0.1-beta version.</div>
|
<SidebarFooterVersion />
|
||||||
</SidebarContainer>
|
</SidebarContainer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sidebar footer version.
|
||||||
|
* @returns {React.JSX}
|
||||||
|
*/
|
||||||
|
function SidebarFooterVersion() {
|
||||||
|
const { REACT_APP_VERSION: VERSION } = process.env;
|
||||||
|
|
||||||
|
if (!VERSION) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return <div class="sidebar__version">v{VERSION}</div>;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user