From 0918cc43d8140182109ca9a4347df8ab88061e35 Mon Sep 17 00:00:00 2001 From: esikkala <esko.ikkala@aalto.fi> Date: Wed, 15 Dec 2021 17:43:29 +0200 Subject: [PATCH] Clean up --- src/client/components/main_layout/InstancePage.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/client/components/main_layout/InstancePage.js b/src/client/components/main_layout/InstancePage.js index e6804867..9ab80038 100644 --- a/src/client/components/main_layout/InstancePage.js +++ b/src/client/components/main_layout/InstancePage.js @@ -34,7 +34,7 @@ const styles = () => ({ /** * A component for generating a page for a single entity. */ -class InstanceHomePage extends React.Component { +class InstancePage extends React.Component { constructor (props) { super(props) this.state = { @@ -102,7 +102,6 @@ class InstanceHomePage extends React.Component { const { classes, perspectiveState, perspectiveConfig, rootUrl, screenSize, layoutConfig } = this.props const { fetching } = perspectiveState const resultClass = perspectiveConfig.id - // const perspectiveID = perspectiveConfig.id const defaultInstancePageTab = perspectiveConfig.defaultInstancePageTab ? perspectiveConfig.defaultInstancePageTab : 'table' @@ -171,7 +170,7 @@ class InstanceHomePage extends React.Component { } } -InstanceHomePage.propTypes = { +InstancePage.propTypes = { /** * Faceted search configs and results of this perspective. */ @@ -255,6 +254,6 @@ InstanceHomePage.propTypes = { layoutConfig: PropTypes.object.isRequired } -export const InstanceHomePageComponent = InstanceHomePage +export const InstanceHomePageComponent = InstancePage -export default withStyles(styles)(InstanceHomePage) +export default withStyles(styles)(InstancePage) -- GitLab