@@ -20,10 +20,7 @@ import './view.scss';
20
20
export const name = 'opentable' ;
21
21
export const title = __ ( 'OpenTable' , 'jetpack' ) ;
22
22
import { getAttributesFromEmbedCode , restRefRegex , ridRegex } from './utils' ;
23
- const supports = {
24
- align : true ,
25
- html : false ,
26
- } ;
23
+
27
24
export const settings = {
28
25
title,
29
26
description : __ ( 'Allow visitors to book a reservation with OpenTable' , 'jetpack' ) ,
@@ -34,16 +31,19 @@ export const settings = {
34
31
__ ( 'reservation' , 'jetpack' ) ,
35
32
__ ( 'restaurant' , 'jetpack' ) ,
36
33
] ,
37
- supports,
34
+ supports : {
35
+ align : true ,
36
+ html : false ,
37
+ } ,
38
38
edit,
39
39
save : ( { attributes : { rid } } ) => (
40
- < div >
40
+ < >
41
41
{ rid . map ( restaurantId => (
42
42
< a href = { `https://www.opentable.com/restref/client/?rid=${ restaurantId } ` } >
43
43
{ `https://www.opentable.com/restref/client/?rid=${ restaurantId } ` }
44
44
</ a >
45
45
) ) }
46
- </ div >
46
+ </ >
47
47
) ,
48
48
attributes : defaultAttributes ,
49
49
example : {
@@ -71,18 +71,4 @@ export const settings = {
71
71
} ,
72
72
] ,
73
73
} ,
74
- deprecated : [
75
- {
76
- attributes : defaultAttributes ,
77
- save : ( { attributes : { rid } } ) => (
78
- < >
79
- { rid . map ( restaurantId => (
80
- < a href = { `https://www.opentable.com/restref/client/?rid=${ restaurantId } ` } >
81
- { `https://www.opentable.com/restref/client/?rid=${ restaurantId } ` }
82
- </ a >
83
- ) ) }
84
- </ >
85
- ) ,
86
- } ,
87
- ] ,
88
74
} ;
0 commit comments