Skip to content

Commit f5fc281

Browse files
funkenstrahlenflovilmart
authored andcommitted
Fix broken Learn More link to cloud code documentation page (#828)
* Fix broken Learn More link to cloud code documentation page * Update all other links to documentation too * Remove unused getSiteDomain
1 parent c42f972 commit f5fc281

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/dashboard/Data/Webhooks/Webhooks.react.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import DropdownOption from 'components/Dropdown/Option.re
1111
import EmptyState from 'components/EmptyState/EmptyState.react';
1212
import Field from 'components/Field/Field.react';
1313
import FormModal from 'components/FormModal/FormModal.react';
14-
import getSiteDomain from 'lib/getSiteDomain';
1514
import Icon from 'components/Icon/Icon.react';
1615
import Label from 'components/Label/Label.react';
1716
import Modal from 'components/Modal/Modal.react';
@@ -94,7 +93,7 @@ export default class Webhooks extends TableView {
9493
<Field
9594
label={<Label
9695
text='Webhook type'
97-
description={<span>Learn about <a target='_blank' href={getSiteDomain() + '/docs/cloudcode/guide#cloud-code-cloud-functions'}>functions</a> and <a target='_blank' href={getSiteDomain() + '/docs/cloudcode/guide#cloud-code-beforesave-triggers'}>triggers</a>.</span>}
96+
description={<span>Learn about <a target='_blank' href='http://docs.parseplatform.org/cloudcode/guide#cloud-code-cloud-functions'>functions</a> and <a target='_blank' href='http://docs.parseplatform.org/cloudcode/guide#cloud-code-beforesave-triggers'>triggers</a>.</span>}
9897
/>}
9998
input={<Dropdown
10099
onChange={value => {
@@ -284,7 +283,7 @@ export default class Webhooks extends TableView {
284283
renderEmpty() {
285284
return <EmptyState
286285
title='Webhooks'
287-
description={<span>Use webhooks to run Cloud Code or connect Parse to your own server. <a href={getSiteDomain() + '/docs/cloudcode/guide'} target='_blank'>Learn more</a>.</span>}
286+
description={<span>Use webhooks to run Cloud Code or connect Parse to your own server. <a href='http://docs.parseplatform.org/cloudcode/guide/#cloud-code-webhooks' target='_blank'>Learn more</a>.</span>}
288287
icon='gears'
289288
cta='Create a Webhook'
290289
action={this.openNewWebhookModal.bind(this)} />

0 commit comments

Comments
 (0)