@growth-operations/ui-shared 1.35.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/support/SupportTab.jsx +8 -12
package/package.json
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
// supportPath — the app's support route path, e.g.
|
|
13
13
|
// "/v1/hubspot/app_pages/<app_key>/support" (base-hosted) or
|
|
14
14
|
// "/api/v1/support" (self-hosted).
|
|
15
|
-
// appName — display name, used in headings/success copy.
|
|
16
15
|
// supportUrl — external support link shown as a fallback on error.
|
|
17
16
|
import React, { useState } from "react";
|
|
18
17
|
import {
|
|
@@ -37,7 +36,7 @@ import {
|
|
|
37
36
|
validateSupportFields,
|
|
38
37
|
} from "./supportLogic";
|
|
39
38
|
|
|
40
|
-
export function SupportTab({ context, supportPath,
|
|
39
|
+
export function SupportTab({ context, supportPath, supportUrl }) {
|
|
41
40
|
const [fields, setFields] = useState({
|
|
42
41
|
firstname: context.user?.firstName ?? "",
|
|
43
42
|
lastname: context.user?.lastName ?? "",
|
|
@@ -115,17 +114,14 @@ export function SupportTab({ context, supportPath, appName = "the app", supportU
|
|
|
115
114
|
return (
|
|
116
115
|
<Flex direction="column" gap="medium">
|
|
117
116
|
<Flex direction="column" gap="small">
|
|
118
|
-
<Heading>Contact
|
|
117
|
+
<Heading>Contact Us</Heading>
|
|
119
118
|
<Text>
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
) : (
|
|
127
|
-
"use our contact page"
|
|
128
|
-
)}
|
|
119
|
+
Or shoot us your question at{" "}
|
|
120
|
+
<Link
|
|
121
|
+
href={{ url: "mailto:info@growthoperationsco.com", external: true }}
|
|
122
|
+
>
|
|
123
|
+
info@growthoperationsco.com
|
|
124
|
+
</Link>
|
|
129
125
|
.
|
|
130
126
|
</Text>
|
|
131
127
|
</Flex>
|