Skip to content

Commit

Permalink
OpenTable: update support doc links (#14634)
Browse files Browse the repository at this point in the history
Fixes #14347
  • Loading branch information
jeherve authored Feb 11, 2020
1 parent 8889ae3 commit 6127aa8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions extensions/blocks/opentable/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { __, sprintf } from '@wordpress/i18n';
*/
import './editor.scss';
import icon from './icon';
import { isAtomicSite, isSimpleSite } from '../../shared/site-type-utils';
import RestaurantPicker from './restaurant-picker';
import BlockStylesSelector from '../../shared/components/block-styles-selector';

Expand Down Expand Up @@ -216,6 +217,11 @@ export default function OpenTableEdit( { attributes, setAttributes, className, c
</>
);

const supportLink =
isSimpleSite() || isAtomicSite()
? 'https://en.support.wordpress.com/wordpress-editor/blocks/opentable-block/'
: 'https://jetpack.com/support/jetpack-blocks/opentable-block/';

const blockPlaceholder = (
<Placeholder
label={ __( 'OpenTable Reservation', 'jetpack' ) }
Expand All @@ -237,9 +243,7 @@ export default function OpenTableEdit( { attributes, setAttributes, className, c
<ExternalLink href="https://restaurant.opentable.com/get-started/">
{ __( 'Sign up for OpenTable', 'jetpack' ) }
</ExternalLink>
<ExternalLink href="https://en.support.wordpress.com/widgets/open-table-widget/">
{ __( 'Learn more', 'jetpack' ) }
</ExternalLink>
<ExternalLink href={ supportLink }>{ __( 'Learn more', 'jetpack' ) }</ExternalLink>
</div>
</Placeholder>
);
Expand Down

0 comments on commit 6127aa8

Please sign in to comment.