Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/components/ReportToast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function isDone(d: DeviceInfo): boolean {

/**
* A dismissible, non-blocking toast inviting a device report (see lib/report.ts):
* - a brush that isn't an iO connected → "does it work?", once per model (dismiss or report);
* - the chooser was dismissed or connecting failed → "not in the list, or won't connect?",
* - a brush that isn't an iO connected → "how is it working?", once per model (dismiss or report);
* - the chooser was dismissed or connecting failed → "trouble finding or connecting?",
* hidden on dismiss until the next cancel/failure.
* Both open a pre-filled GitHub issue form; the user reviews and submits it there.
*/
Expand All @@ -52,9 +52,9 @@ export function ReportToast({ state, cancelled, error, device, discovery, raised
};
return (
<Toast raised={raised} onDismiss={finish}>
<p>Brushlog is only confirmed on the Oral-B iO so far. Does your brush work?</p>
<p>How is your brush working for you?</p>
<a href={deviceReportUrl(device, discovery)} target="_blank" rel="noopener noreferrer" onClick={finish} className={ACTION}>
Tell us how it went
Let us know
</a>
</Toast>
);
Expand All @@ -63,15 +63,15 @@ export function ReportToast({ state, cancelled, error, device, discovery, raised
if (problem && !problemDismissed && state !== 'connected') {
return (
<Toast raised={raised} onDismiss={() => setProblemDismissed(true)}>
<p>Brush not in the list, or won't connect?</p>
<p>Trouble finding or connecting your brush?</p>
<a
href={connectionProblemUrl(error)}
target="_blank"
rel="noopener noreferrer"
onClick={() => setProblemDismissed(true)}
className={ACTION}
>
Tell us which one
Let us know
</a>
</Toast>
);
Expand Down
Loading