Update audit trial page.

This commit is contained in:
Patrick Fic
2024-05-09 16:54:02 -07:00
parent 3a2a7c2a11
commit a8805d68e4

View File

@@ -141,35 +141,34 @@ function NoAuditAccess({ features }) {
status="warning" status="warning"
title="You do not currently have access to the audit feature of RPS." title="You do not currently have access to the audit feature of RPS."
subTitle="Auditing allows you to instantly and automatically find discrepancies between the data you have recorded in RPS and the scorecard provided to your by your SRA." subTitle="Auditing allows you to instantly and automatically find discrepancies between the data you have recorded in RPS and the scorecard provided to your by your SRA."
extra={ extra={[
features.audit_trial ? ( <Button
<Button size="large"
type="primary" type="primary"
onClick={() => { onClick={() => {
window.$crisp.push(["do", "message:thread:start", ["Subscription Upgrade - RPS Audit"]]); window.$crisp.push(["do", "message:thread:start", ["Subscription Upgrade - RPS Audit"]]);
window.$crisp.push(["set", "message:send", ["I would like to subscribe to the RPS Audit feature."]]); window.$crisp.push(["set", "message:send", ["I would like to subscribe to the RPS Audit feature."]]);
}} }}
> >
Subscribe Subscribe
</Button> </Button>,
) : ( <Button
<Button size="large"
type="primary" disabled={features.audit_trial}
onClick={() => { onClick={() => {
window.$crisp.push(["set", "session:event", [[["trial_request", { feature: "audit" }]]]]); window.$crisp.push(["set", "session:event", [[["trial_request", { feature: "audit" }]]]]);
window.$crisp.push(["do", "message:thread:start", ["Trial Request - RPS Audit"]]); window.$crisp.push(["do", "message:thread:start", ["Trial Request - RPS Audit"]]);
window.$crisp.push([ window.$crisp.push([
"do", "do",
"message:send", "message:send",
["text", "Hello, I would like to request a trial of the RPS audit feature."] ["text", "Hello, I would like to request a trial of the RPS audit feature."]
]); ]);
window.$crisp.push(["do", "chat:open"]); window.$crisp.push(["do", "chat:open"]);
}} }}
> >
Request Trial {features.audit_trial ? `(Trial ended on ${features.audit_trial})` : "Request Trial"}
</Button> </Button>
) ]}
}
/> />
); );
} }