-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: rewrite Tabs component * feat: rewrite concept compare control component * feat: remove unused help folder * fix: rewrite Tabs Component * feat: rewrite classification level component with function * feat: be able to delete dataset and distribution * feat: add missing export * feat: remove wihRouter for multiple components
- Loading branch information
1 parent
31c0dd0
commit 4481392
Showing
30 changed files
with
235 additions
and
1,486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,32 @@ | ||
import React, { Component } from 'react'; | ||
import React from 'react'; | ||
import { PageTitle, PageSubtitle } from '@inseefr/wilco'; | ||
import Controls from './controls'; | ||
import General from './general'; | ||
import Members from './members'; | ||
import { CheckSecondLang } from 'bauhaus-utilities'; | ||
|
||
class LevelVisualization extends Component { | ||
render() { | ||
const { | ||
level: { general, members }, | ||
secondLang, | ||
} = this.props; | ||
const { classificationId } = general; | ||
return ( | ||
<div className="container"> | ||
<PageTitle title={general.prefLabelLg1} /> | ||
{general.prefLabelLg2 && ( | ||
<PageSubtitle subTitle={general.prefLabelLg2} /> | ||
)} | ||
<Controls id={classificationId} /> | ||
<CheckSecondLang /> | ||
<General | ||
general={general} | ||
const LevelVisualization = ({ level: { general, members }, secondLang }) => { | ||
const { classificationId } = general; | ||
return ( | ||
<div className="container"> | ||
<PageTitle title={general.prefLabelLg1} /> | ||
{general.prefLabelLg2 && <PageSubtitle subTitle={general.prefLabelLg2} />} | ||
<Controls id={classificationId} /> | ||
<CheckSecondLang /> | ||
<General | ||
general={general} | ||
classificationId={classificationId} | ||
secondLang={secondLang} | ||
/> | ||
{members.length !== 0 && ( | ||
<Members | ||
members={members} | ||
classificationId={classificationId} | ||
secondLang={secondLang} | ||
/> | ||
{members.length !== 0 && ( | ||
<Members | ||
members={members} | ||
classificationId={classificationId} | ||
secondLang={secondLang} | ||
/> | ||
)} | ||
</div> | ||
); | ||
} | ||
} | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default LevelVisualization; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
import React, { Component } from 'react'; | ||
import { withRouter } from 'react-router-dom'; | ||
import React from 'react'; | ||
import { useLocation } from 'react-router-dom'; | ||
import { ReturnButton, ActionToolbar } from '@inseefr/wilco'; | ||
|
||
class Controls extends Component { | ||
render() { | ||
const location = this.props.history.location.pathname; | ||
const nextLocation = location.replace('/compare', ''); | ||
return ( | ||
<ActionToolbar> | ||
<ReturnButton action={nextLocation} col={3} /> | ||
</ActionToolbar> | ||
); | ||
} | ||
} | ||
const Controls = () => { | ||
const location = useLocation(); | ||
const nextLocation = location.pathname.replace('/compare', ''); | ||
return ( | ||
<ActionToolbar> | ||
<ReturnButton action={nextLocation} col={3} /> | ||
</ActionToolbar> | ||
); | ||
}; | ||
|
||
export default withRouter(Controls); | ||
export default Controls; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.