Update audit trial page.
This commit is contained in:
@@ -141,35 +141,34 @@ function NoAuditAccess({ features }) {
|
||||
status="warning"
|
||||
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."
|
||||
extra={
|
||||
features.audit_trial ? (
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
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."]]);
|
||||
}}
|
||||
>
|
||||
Subscribe
|
||||
</Button>
|
||||
) : (
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
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:send",
|
||||
["text", "Hello, I would like to request a trial of the RPS audit feature."]
|
||||
]);
|
||||
window.$crisp.push(["do", "chat:open"]);
|
||||
}}
|
||||
>
|
||||
Request Trial
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
extra={[
|
||||
<Button
|
||||
size="large"
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
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."]]);
|
||||
}}
|
||||
>
|
||||
Subscribe
|
||||
</Button>,
|
||||
<Button
|
||||
size="large"
|
||||
disabled={features.audit_trial}
|
||||
onClick={() => {
|
||||
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:send",
|
||||
["text", "Hello, I would like to request a trial of the RPS audit feature."]
|
||||
]);
|
||||
window.$crisp.push(["do", "chat:open"]);
|
||||
}}
|
||||
>
|
||||
{features.audit_trial ? `(Trial ended on ${features.audit_trial})` : "Request Trial"}
|
||||
</Button>
|
||||
]}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user