Update support links (#977)
* Add the new zendesk feedback form URL * Dont wrap handle or display name in the drawer * Add help link * Tune drawer footer layout * Type fixes * make helpdesk urls more composable for future * fix typo --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
This commit is contained in:
+20
-2
@@ -1,5 +1,23 @@
|
||||
export const FEEDBACK_FORM_URL =
|
||||
'https://docs.google.com/forms/d/e/1FAIpQLSdavFRXTdB6tRobaFrRR2A1gv3b-IBHwQkBmNZTRpoqmcrPrQ/viewform?usp=sf_link'
|
||||
const HELP_DESK_LANG = 'en-us'
|
||||
export const HELP_DESK_URL = `https://blueskyweb.zendesk.com/hc/${HELP_DESK_LANG}`
|
||||
|
||||
const BASE_FEEDBACK_FORM_URL = `${HELP_DESK_URL}/requests/new`
|
||||
export function FEEDBACK_FORM_URL({
|
||||
email,
|
||||
handle,
|
||||
}: {
|
||||
email?: string
|
||||
handle?: string
|
||||
}): string {
|
||||
let str = BASE_FEEDBACK_FORM_URL
|
||||
if (email) {
|
||||
str += `?tf_anonymous_requester_email=${encodeURIComponent(email)}`
|
||||
if (handle) {
|
||||
str += `&tf_17205412673421=${encodeURIComponent(handle)}`
|
||||
}
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
||||
export const MAX_DISPLAY_NAME = 64
|
||||
export const MAX_DESCRIPTION = 256
|
||||
|
||||
Reference in New Issue
Block a user