Skip to content

Commit

Permalink
Merge pull request #698 from CBIIT/BENTO-2194
Browse files Browse the repository at this point in the history
  • Loading branch information
iksheth authored Nov 29, 2022
2 parents d193aac + 2a3bf75 commit c3313e4
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 16 deletions.
19 changes: 7 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"babel-loader": "8.0.5",
"babel-plugin-named-asset-import": "^0.3.4",
"babel-preset-react-app": "^7.0.1",
"bento-components": "^1.0.1",
"bento-components": "^1.0.2",
"bfj": "6.1.1",
"case-sensitive-paths-webpack-plugin": "2.2.0",
"classnames": "^2.2.6",
Expand Down
3 changes: 1 addition & 2 deletions src/bento/globalFooterData.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,17 @@ export default {

{
title: 'System Info',
systemInfoInLinkSection: true,
items: [
{
text: 'Release Notes',
link: 'https://github.com/CBIIT/bento-frontend/releases',
},
{
text: `FE Version: ${env.REACT_APP_FE_VERSION || '0.0.0'}`,
link: '',
},
{
text: `BE Version: ${env.REACT_APP_BE_VERSION || '0.0.0'}`,
link: '',
},
{
text: 'System Info Page',
Expand Down
26 changes: 26 additions & 0 deletions src/components/Footer/FooterThemConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';
import _ from 'lodash';
import { MuiThemeProvider, createTheme } from '@material-ui/core/styles';
import themes, { overrides } from '../../themes';

export default ({
children,
}) => {
const themesLight = _.cloneDeep(themes.light);
themesLight.overrides.MuiDivider = {
root: {
height: '0px',
},
};

const computedTheme = createTheme({
...themesLight,
...overrides,
});

return (
<MuiThemeProvider theme={computedTheme}>
{children}
</MuiThemeProvider>
);
};
7 changes: 6 additions & 1 deletion src/components/Footer/FooterView.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react';
import { Footer } from 'bento-components';
import FooterData from '../../bento/globalFooterData';
import env from '../../utils/env';
import CustomThemeProvider from './FooterThemConfig';

const FILE_SERVICE_API = env.REACT_APP_FILE_SERVICE_API;

Expand All @@ -20,7 +21,11 @@ const ICDCFooter = () => {
getSystems();
}, [FooterData]);

return <><Footer data={footerUpdatedData} /></>;
return (
<CustomThemeProvider>
<Footer data={footerUpdatedData} />
</CustomThemeProvider>
);
};

export default ICDCFooter;

0 comments on commit c3313e4

Please sign in to comment.