From 8f5aba9911772a0acf3596847fcf4d6587181a19 Mon Sep 17 00:00:00 2001 From: Jules Rosser Date: Mon, 22 Aug 2022 13:56:56 +0200 Subject: [PATCH] add URLs to OfflineWithFeedback Component docs --- contributingGuides/OFFLINE_UX.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributingGuides/OFFLINE_UX.md b/contributingGuides/OFFLINE_UX.md index 5e0e5748f052..a58f4f50de8b 100644 --- a/contributingGuides/OFFLINE_UX.md +++ b/contributingGuides/OFFLINE_UX.md @@ -77,7 +77,7 @@ When the user is offline: - To ensure the UI is shown as described above, you should enclose the components that contain the data that was added/updated/deleted with the OfflineWithFeedback component **Handling errors:** -- The OfflineWithFeedback component already handles showing errors too, as long as you pass the error field in the errors prop +- The [OfflineWithFeedback component](https://github.com/Expensify/App/blob/main/src/components/OfflineWithFeedback.js) already handles showing errors too, as long as you pass the error field in the [errors prop](https://github.com/Expensify/App/blob/128ea378f2e1418140325c02f0b894ee60a8e53f/src/components/OfflineWithFeedback.js#L29-L31) - When dismissing the error, the onClose prop will be called, there we need to call an action that either: - If the pendingAction was `delete`, it removes the data altogether - Otherwise, it would clear the errors and pendingAction properties from the data