Skip to content

Commit

Permalink
Fix reference (#119)
Browse files Browse the repository at this point in the history
* Fixed phenopolis reference, and footer.

* Fixed phenopolis reference, and footer.
  • Loading branch information
YuanTian1991 authored Jun 30, 2020
1 parent ff05bae commit a5aca45
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { blue, red } from '@material-ui/core/colors';
import './assets/carolina/base.scss';

import HomeAppBar from './page/HomeAppBar';
import Footer from './page/Footer';
// import Footer from './page/Footer';
import Login from './page/Login';
import Home from './page/Home';
import Product from './page/Product';
Expand Down Expand Up @@ -58,7 +58,6 @@ function App() {
<Route path="/individual/:individualId" component={Individual} />
<Route path="/variant/:variantId" component={Variant} />
</HomeAppBar>
<Footer />
</ThemeProvider>
</Router>
</Suspense>
Expand Down
2 changes: 2 additions & 0 deletions src/components/AppBar/LoginBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import ChevronLeftIcon from '@material-ui/icons/ChevronLeft';

// import Sidebar from './Sidebar';
// import NavSearch from './NavSearch';
import Footer from '../General/Footer';
import DrawerSearch from './DrawerSearch';

import { getUsername } from '../../redux/selectors';
Expand Down Expand Up @@ -478,6 +479,7 @@ class LoginBar extends React.Component {
<main className={classes.content}>
<div className={classes.toolbar} />
{this.props.children}
<Footer />
</main>
</div>
);
Expand Down
6 changes: 5 additions & 1 deletion src/components/AppBar/NoLoginBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import TranslateIcon from '@material-ui/icons/Translate';
import SupervisedUserCircleIcon from '@material-ui/icons/SupervisedUserCircle';
import ShoppingCartIcon from '@material-ui/icons/ShoppingCart';

import Footer from '../General/Footer';
import NoSidebar from './NoSidebar';
import LoginBox from './LoginBox';

Expand Down Expand Up @@ -256,7 +257,10 @@ class NoLoginBar extends React.Component {
</Toolbar>
</AppBar>

<main>{this.props.children}</main>
<main>
{this.props.children}
<Footer />
</main>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/page/Footer.js → src/components/General/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default function StickyFooter() {
<Grid item xs={12} md={8}>
<Typography variant="body2" gutterBottom>
<Trans i18nKey="Footer.Citation">
If you use Phenopolis, please cite us as:{' '}
If you use Phenopolis, please cite us as:
<a href="https://doi.org/10.1093/bioinformatics/btx147" className={classes.a}>
Pontikos, N. et al. (2017). Phenopolis: an open platform for harmonization and
analysis of genetic and phenotypic data. Bioinformatics, 9, 7
Expand Down

0 comments on commit a5aca45

Please sign in to comment.