Skip to content

Commit

Permalink
[TRELLO-2611] Change information panel when consumer share / doesn't …
Browse files Browse the repository at this point in the history
…share data (#928)
  • Loading branch information
charlescd authored Oct 4, 2024
1 parent ac520fc commit cfb2f2f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {Gender, genders} from '../../../model/Report'
import {PartialReport, useReportFlowContext} from '../ReportFlowContext'
import {ConsumerAnonymousInformation} from './ConsumerAnonymousInformation'
import {ConsumerValidationDialog2, consumerValidationModal} from './ConsumerValidationDialog'
import {ConsumerShareInformation} from '@/components_feature/reportFlow/Consumer/ConsumerShareInformation'

interface ConsumerForm {
firstName: string
Expand Down Expand Up @@ -320,6 +321,7 @@ export const ConsumerInner = ({
)}
/>
{watchContactAgreement === false && <ConsumerAnonymousInformation />}
{watchContactAgreement === true && <ConsumerShareInformation />}
</>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import {useI18n} from '@/i18n/I18n'
import {Animate} from '@/components_simple/Animate'
import {alertWarningBackgroundColor, alertWarningTextColor} from '@/components_simple/ScAlert'

export function ConsumerShareInformation() {
const {m} = useI18n()
return (
<Animate>
<div>
<div className="py-4 px-8" style={{background: alertWarningBackgroundColor, color: alertWarningTextColor}}>
<p className="mb-0">{m.consumerShareInformation}</p>
</div>
</div>
</Animate>
)
}
3 changes: 2 additions & 1 deletion website/src/i18n/localization/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,8 @@ export const en = {
If our team are required to disclose your identity to a court authority or your employer as part of our investigation, they will ask for your permission first.
<b>You can decline this request.</b>
`,
consumerAnonymousInformation: `You will remain anonymous, but the company will not be able to resolve your specific issue. This means that resolutions such as refunds or personalised responses will not be possible.`,
consumerAnonymousInformation: `You remain anonymous. As a reminder, you chose to report the issue so the company can improve: your specific problem will not be resolved. No refund, no personalized response...`,
consumerShareInformation: `You share your contact details with the company. As a reminder, you have chosen to report the problem so that the company can improve: your specific problem cannot be solved. No refund, no personalized response...`,
confirmationTitle: `Summary of your issue`,
confirmationAlertTransmittable: `Check every detail of your report before sending it to the company and to Fraud Control.`,
confirmationAlert: `Check every detail of your report before sending it to Fraud Control.`,
Expand Down
4 changes: 2 additions & 2 deletions website/src/i18n/localization/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1361,8 +1361,8 @@ export const fr = {
Pendant l'enquête, si les enquêteurs ont besoin de révéler votre identité à la justice ou à votre employeur, ils vous demanderont l'autorisation avant.
<b>Vous pourrez refuser.</b>
`,
consumerAnonymousInformation: `Vous restez anonyme, mais l'entreprise ne sera pas en mesure de résoudre votre problème en particulier. Pas de
remboursement, de réponse personnalisée, ...`,
consumerAnonymousInformation: `Vous restez anonyme. Pour mémoire, vous avez choisi de signaler le problème afin que l’entreprise s’améliore : votre problème particulier ne pourra pas être résolu. Pas de remboursement, de réponse personnalisée…`,
consumerShareInformation: `Vous partagez vos coordonnées avec l’entreprise. Pour mémoire, vous avez choisi de signaler le problème afin que l’entreprise s’améliore : votre problème particulier ne pourra pas être résolu. Pas de remboursement, de réponse personnalisée`,
confirmationTitle: `Récapitulatif de votre problème`,
confirmationAlertTransmittable: `Vérifiez votre signalement avant de l’envoyer à l'entreprise et à la répression des fraudes.`,
confirmationAlert: `Vérifiez votre signalement avant de l’envoyer à la répression des fraudes.`,
Expand Down

0 comments on commit cfb2f2f

Please sign in to comment.