@@ -10,11 +10,14 @@ import {
10
10
} from "antd" ;
11
11
import { useRouter } from "next/router" ;
12
12
import { ReactNode , useRef , useState } from "react" ;
13
- import CodeMirror from "components/share/codemirror" ;
13
+
14
14
import { Icon } from "@cocalc/frontend/components/icon" ;
15
15
import { is_valid_email_address as isValidEmailAddress } from "@cocalc/util/misc" ;
16
16
import { COLORS } from "@cocalc/util/theme" ;
17
+ import { Paragraph , Title } from "components/misc" ;
17
18
import A from "components/misc/A" ;
19
+ import ChatGPTHelp from "components/openai/chatgpt-help" ;
20
+ import CodeMirror from "components/share/codemirror" ;
18
21
import Loading from "components/share/loading" ;
19
22
import SiteName from "components/share/site-name" ;
20
23
import apiPost from "lib/api/post" ;
@@ -24,8 +27,6 @@ import getBrowserInfo from "./browser-info";
24
27
import RecentFiles from "./recent-files" ;
25
28
import { Type } from "./tickets" ;
26
29
import { NoZendesk } from "./util" ;
27
- import { Paragraph , Title } from "components/misc" ;
28
- import ChatGPTHelp from "components/openai/chatgpt-help" ;
29
30
30
31
const CHATGPT_DISABLED = true ;
31
32
const MIN_BODY_LENGTH = 16 ;
@@ -47,7 +48,7 @@ function stringToType(s?: any): Type {
47
48
}
48
49
49
50
export default function Create ( ) {
50
- const { contactEmail , zendesk, account, openaiEnabled, siteName } =
51
+ const { helpEmail , zendesk, account, openaiEnabled, siteName } =
51
52
useCustomize ( ) ;
52
53
const router = useRouter ( ) ;
53
54
// The URL the user was viewing when they requested support.
@@ -140,12 +141,12 @@ export default function Create() {
140
141
check the status of your support tickets
141
142
</ A >
142
143
.{ " " }
143
- { contactEmail && (
144
+ { helpEmail ? (
144
145
< >
145
146
You can also email us directly at{ " " }
146
- < A href = { `mailto:${ contactEmail } ` } > { contactEmail } </ A > .
147
+ < A href = { `mailto:${ helpEmail } ` } > { helpEmail } </ A > .
147
148
</ >
148
- ) }
149
+ ) : undefined }
149
150
</ p >
150
151
{ openaiEnabled && ! CHATGPT_DISABLED && (
151
152
< ChatGPT siteName = { siteName } />
@@ -283,12 +284,12 @@ export default function Create() {
283
284
style = { { margin : "15px auto" , maxWidth : "500px" } }
284
285
/>
285
286
< br />
286
- { contactEmail && (
287
+ { helpEmail ? (
287
288
< >
288
289
If you continue to have problems, email us directly at{ " " }
289
- < A href = { `mailto:${ contactEmail } ` } > { contactEmail } </ A > .
290
+ < A href = { `mailto:${ helpEmail } ` } > { helpEmail } </ A > .
290
291
</ >
291
- ) }
292
+ ) : undefined }
292
293
</ div >
293
294
) }
294
295
{ success && (
0 commit comments