écocoll: Bouton pour revenir à la sélection des activités

pull/518/head
Mael 2019-05-23 18:45:12 +02:00
parent 3556b62710
commit 566f068793
2 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,11 @@ import { MultiItemSelection } from './ActivitésSelection'
export let allTrue = list => list && all(item => item === true)(list)
export let BackToSelection = withSitePaths(({ sitePaths }) => (
<Link to={sitePaths.économieCollaborative.activités.index}>
Revenir à la sélection des activités
</Link>
))
export default withSitePaths(function LocationMeublée({
sitePaths,
match: {
@ -56,6 +61,7 @@ export default withSitePaths(function LocationMeublée({
return (
<section>
<BackToSelection />
<Animate.fromBottom>
<ScrollToTop />
<h1>

View File

@ -6,7 +6,7 @@ import { Link } from 'react-router-dom'
import Animate from 'Ui/animate'
import checklistSvg from './images/checklist.svg'
import { StoreContext } from './StoreContext'
import { allTrue } from './Activité'
import { BackToSelection, allTrue } from './Activité'
import { getActivité } from './reducers'
let nothingToDo = activityAnswers => a => {
@ -65,6 +65,7 @@ export default withSitePaths(function CoConsommation({ sitePaths }) {
return (
<Animate.fromBottom>
<ScrollToTop />
<BackToSelection />
<h1>
Que dois-je déclarer ? <br />
<small css="font-size: 70% !important" className="ui__ notice">