You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| image | Image | The image to display the details of. | ✔️ ||
183
+
| captureMode | boolean | Boolean indicating if this component is displayed in "capture" mode. | ✔️ |`false`|
184
+
| lang | string | The language to be used by the component. ||`en`|
185
+
| showGalleryButton | boolean | Boolean indicating if the gallery button must be displayed or not. ||`true`|
186
+
| onClose | () => void | Callback called when the user presses the close button. |||
187
+
| onNavigateToGallery | () => void | Callback called when the user presses the gallery button if it is displayed. |||
188
+
| showCaptureButton | boolean | Boolean indicating if the capture button must be displayed or not. This prop can only be specified if `captureMode` is set to true. ||`true`|
189
+
| onNavigateToCapture | () => void | Callback called when the user presses the capture button. This prop can only be specified if `captureMode` is set to true. |||
190
+
| onRetake | () => void | Callback called when the user presses the retake button. This prop can only be specified if `captureMode` is set to true. |||
201
191
202
192
---
203
193
204
-
## Icon
194
+
## InspectionGallery
205
195
### Description
206
-
An Icon component that displays an icon based on a given name. The list of icons is available in the official Monk SDK
207
-
documentation.
196
+
This component is used to display a gallery of pictures taken during an inspection. If this component is used
197
+
mid-capture, set the `captureMode` prop to `true` so that you'll enable features such as compliance errors, retakes etc.
| inspectionId | string | The ID of the inspection to display the images of. | ✔️ ||
212
+
| apiConfig | ApiConfig | The config used to communicate with the API. | ✔️ ||
213
+
| captureMode | boolean | Boolean indicating if this component is displayed in "capture" mode. | ✔️ ||
214
+
| lang | string | The language used by the InspectionGallery component. ||`en`|
215
+
| refreshIntervalMs | number | The delay (in milliseconds) between each `getInspection` request made to the API when polling the status of the inspection. ||`1000`|
216
+
| showBackButton | boolean | Boolean indicating if the back button of the gallery top bar should be displayed or not. ||`false`|
217
+
| onBack | () => void | Callback called when the user presses the back button if it is displayed. |||
218
+
| onValidate | () => void | Callback called when the user presses the validate button. |||
219
+
| sights | Sight[]| The list of sights to be capture in the current capture flow. This prop can only be specified if `captureMode` is set to true. | ✔️ (if `captureMode` is `true`) ||
220
+
| allowSkipRetake | boolean | Boolean indicating if the user should be allowed to skip the retaking of non-compliant pictures before validating the inspection. This prop can only be specified if `captureMode` is set to true. ||`false`|
221
+
| onNavigateToCapture | () => void | Callback called when the user wants to navigate back to the capture component. This prop can only be specified if `captureMode` is set to true. |||
222
+
| enableCompliance | boolean | Boolean indicating if compliance checks should be enabled or not. This prop can only be specified if `captureMode` is set to true. |||
223
+
| complianceIssues | ComplianceIssue[]| If compliance checks are enable, this property can be used to select a list of compliance issues to check. This prop can only be specified if `captureMode` is set to true. |||
0 commit comments