🔥 Supprime linktoform
Introduit dans 02abca6d
Nous avons eu assez de réponse au sondage, retour au bouton précédent
pull/1387/head
parent
eee716e041
commit
505411c767
|
@ -1,25 +0,0 @@
|
|||
// Envie de donner un coup de pouce ? Répondez à notre sondage sur le simulateur.
|
||||
export default function LinkToForm() {
|
||||
const hostname = new URL(
|
||||
new URLSearchParams(document.location.search).get('integratorUrl') ||
|
||||
document.referrer ||
|
||||
document.location.origin
|
||||
).hostname.replace(/^www\.|^m\./, '')
|
||||
return (
|
||||
<div
|
||||
style={{ display: 'flex', justifyContent: 'center', marginTop: '1rem' }}
|
||||
>
|
||||
<span className="feedback-page ui__ notice">
|
||||
<span>
|
||||
Envie de donner un coup de pouce ?{' '}
|
||||
<a
|
||||
target="_blank"
|
||||
href={`https://docs.google.com/forms/d/e/1FAIpQLSdrA0Jl61oACUmn54uYN7hd3XRgBQEJkpzAihPLtJn4FezmsQ/viewform?usp=pp_url&entry.455823333=${hostname}`}
|
||||
>
|
||||
Répondez à notre sondage sur le simulateur.
|
||||
</a>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
)
|
||||
}
|
|
@ -13,7 +13,6 @@ import React from 'react'
|
|||
import { Trans } from 'react-i18next'
|
||||
import { useSelector } from 'react-redux'
|
||||
import { firstStepCompletedSelector } from 'Selectors/simulationSelectors'
|
||||
import LinkToForm from './Feedback/LinkToForm'
|
||||
import useSearchParamsSimulationSharing from 'Components/utils/useSearchParamsSimulationSharing'
|
||||
import ShareSimulationBanner from 'Components/ShareSimulationBanner'
|
||||
|
||||
|
@ -22,14 +21,12 @@ type SimulationProps = {
|
|||
results?: React.ReactNode
|
||||
customEndMessages?: ConversationProps['customEndMessages']
|
||||
showPeriodSwitch?: boolean
|
||||
showLinkToForm?: boolean
|
||||
}
|
||||
|
||||
export default function Simulation({
|
||||
explanations,
|
||||
results,
|
||||
customEndMessages,
|
||||
showLinkToForm,
|
||||
showPeriodSwitch,
|
||||
}: SimulationProps) {
|
||||
const firstStepCompleted = useSelector(firstStepCompletedSelector)
|
||||
|
@ -45,18 +42,15 @@ export default function Simulation({
|
|||
<ShareSimulationBanner getShareSearchParams={getShareSearchParams} />
|
||||
<Questions customEndMessages={customEndMessages} />
|
||||
<br />
|
||||
{showLinkToForm && <LinkToForm />}
|
||||
{!showLinkToForm && (
|
||||
<PageFeedback
|
||||
customMessage={
|
||||
<Trans i18nKey="feedback.simulator">
|
||||
Êtes-vous satisfait de ce simulateur ?
|
||||
</Trans>
|
||||
}
|
||||
customEventName="rate simulator"
|
||||
/>
|
||||
)}{' '}
|
||||
{explanations}
|
||||
<PageFeedback
|
||||
customMessage={
|
||||
<Trans i18nKey="feedback.simulator">
|
||||
Êtes-vous satisfait de ce simulateur ?
|
||||
</Trans>
|
||||
}
|
||||
customEventName="rate simulator"
|
||||
/>
|
||||
){explanations}
|
||||
</Animate.fromTop>
|
||||
)}
|
||||
</>
|
||||
|
|
|
@ -16,7 +16,6 @@ export default function SalariéSimulation() {
|
|||
<>
|
||||
<Simulation
|
||||
explanations={<SalaryExplanation />}
|
||||
showLinkToForm={language === 'fr'}
|
||||
customEndMessages={
|
||||
<>
|
||||
<Trans i18nKey="simulation-end.hiring.text">
|
||||
|
|
Loading…
Reference in New Issue