|
93 | 93 | { "id": "call_text_column", "component": { "Column": { "children": { "explicitList": ["call_primary_text", "call_secondary_text"]} , "distribution": "start", "alignment": "start"} } } , |
94 | 94 | { "id": "info_row_4", "component": { "Row": { "children": { "explicitList": ["call_icon", "call_text_column"]} , "distribution": "start", "alignment": "start"} } } , |
95 | 95 | { "id": "info_rows_column", "weight": 1, "component": { "Column": { "children": { "explicitList": ["info_row_1", "info_row_2", "info_row_3", "info_row_4"]} , "alignment": "stretch"} } } , |
96 | | - { "id": "button_1_text", "component": { "Text": { "text": { "literalString": "Follow"} } } } , { "id": "button_1", "component": { "Button": { "child": "button_1_text", "primary": true, "action": { "name": "follow_profile"} } } } , |
| 96 | + { "id": "button_1_text", "component": { "Text": { "text": { "literalString": "Follow"} } } } , { "id": "button_1", "component": { "Button": { "child": "button_1_text", "primary": true, "action": { "name": "follow_contact"} } } } , |
97 | 97 | { "id": "button_2_text", "component": { "Text": { "text": { "literalString": "Message"} } } } , { "id": "button_2", "component": { "Button": { "child": "button_2_text", "primary": false, "action": { "name": "send_message"} } } } , |
98 | 98 | { "id": "action_buttons_row", "component": { "Row": { "children": { "explicitList": ["button_1", "button_2"]} , "distribution": "center", "alignment": "center"} } } , |
99 | 99 | { "id": "link_text", "component": { "Text": { "text": { "literalString": "[View Full Profile](/profile)"} } } } , |
|
144 | 144 | } } |
145 | 145 | ] |
146 | 146 | ---END ACTION_CONFIRMATION_EXAMPLE--- |
147 | | -""" |
| 147 | + |
| 148 | +---BEGIN FOLLOW_SUCCESS_EXAMPLE--- |
| 149 | +[ |
| 150 | + { "beginRendering": { "surfaceId": "contact-card", "root": "success_card"} }, |
| 151 | + { "surfaceUpdate": { |
| 152 | + "surfaceId": "contact-card", |
| 153 | + "components": [ |
| 154 | + { "id": "success_icon", "component": { "Icon": { "name": { "literalString": "check_circle"}, "size": 48.0, "color": "#4CAF50"} } } , |
| 155 | + { "id": "success_text", "component": { "Text": { "text": { "literalString": "Successfully Followed"}, "usageHint": "h2"} } } , |
| 156 | + { "id": "success_column", "component": { "Column": { "children": { "explicitList": ["success_icon", "success_text"]} , "alignment": "center"} } } , |
| 157 | + { "id": "success_card", "component": { "Card": { "child": "success_column"} } } |
| 158 | + ] |
| 159 | + } } |
| 160 | +] |
| 161 | +---END FOLLOW_SUCCESS_EXAMPLE--- |
| 162 | + |
0 commit comments