Skip to content
Snippets Groups Projects
Commit 0918cc43 authored by esikkala's avatar esikkala
Browse files

Clean up

parent 8e840a50
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ const styles = () => ({ ...@@ -34,7 +34,7 @@ const styles = () => ({
/** /**
* A component for generating a page for a single entity. * A component for generating a page for a single entity.
*/ */
class InstanceHomePage extends React.Component { class InstancePage extends React.Component {
constructor (props) { constructor (props) {
super(props) super(props)
this.state = { this.state = {
...@@ -102,7 +102,6 @@ class InstanceHomePage extends React.Component { ...@@ -102,7 +102,6 @@ class InstanceHomePage extends React.Component {
const { classes, perspectiveState, perspectiveConfig, rootUrl, screenSize, layoutConfig } = this.props const { classes, perspectiveState, perspectiveConfig, rootUrl, screenSize, layoutConfig } = this.props
const { fetching } = perspectiveState const { fetching } = perspectiveState
const resultClass = perspectiveConfig.id const resultClass = perspectiveConfig.id
// const perspectiveID = perspectiveConfig.id
const defaultInstancePageTab = perspectiveConfig.defaultInstancePageTab const defaultInstancePageTab = perspectiveConfig.defaultInstancePageTab
? perspectiveConfig.defaultInstancePageTab ? perspectiveConfig.defaultInstancePageTab
: 'table' : 'table'
...@@ -171,7 +170,7 @@ class InstanceHomePage extends React.Component { ...@@ -171,7 +170,7 @@ class InstanceHomePage extends React.Component {
} }
} }
InstanceHomePage.propTypes = { InstancePage.propTypes = {
/** /**
* Faceted search configs and results of this perspective. * Faceted search configs and results of this perspective.
*/ */
...@@ -255,6 +254,6 @@ InstanceHomePage.propTypes = { ...@@ -255,6 +254,6 @@ InstanceHomePage.propTypes = {
layoutConfig: PropTypes.object.isRequired layoutConfig: PropTypes.object.isRequired
} }
export const InstanceHomePageComponent = InstanceHomePage export const InstanceHomePageComponent = InstancePage
export default withStyles(styles)(InstanceHomePage) export default withStyles(styles)(InstancePage)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment