-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/tienifr/App into fix/27149
- Loading branch information
Showing
24 changed files
with
126 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
docs/articles/expensify-classic/policy-and-domain-settings/Admins.md
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
docs/articles/expensify-classic/policy-and-domain-settings/Domain-Admins.md
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
docs/articles/expensify-classic/policy-and-domain-settings/Domain-Members.md
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
docs/articles/expensify-classic/policy-and-domain-settings/Overview.md
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
docs/articles/expensify-classic/policy-and-domain-settings/Reports.md
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
docs/articles/expensify-classic/policy-and-domain-settings/Trips.md
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
docs/articles/expensify-classic/policy-and-domain-settings/reports/Currency.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Currency | ||
description: Currency | ||
--- | ||
## Resource Coming Soon! |
5 changes: 5 additions & 0 deletions
5
...xpensify-classic/policy-and-domain-settings/reports/Report-Fields-And-Titles.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Report Fields & Titles | ||
description: Report Fields & Titles | ||
--- | ||
## Resource Coming Soon! |
5 changes: 5 additions & 0 deletions
5
...ticles/expensify-classic/policy-and-domain-settings/reports/Scheduled-Submit.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Scheduled Submit | ||
description: Scheduled Submit | ||
--- | ||
## Resource Coming Soon! |
5 changes: 5 additions & 0 deletions
5
docs/expensify-classic/hubs/policy-and-domain-settings/reports.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
{% include section.html %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
import Onyx, {OnyxUpdate} from 'react-native-onyx'; | ||
import ONYXKEYS from '../../ONYXKEYS'; | ||
|
||
// In this file we manage a queue of Onyx updates while the SequentialQueue is processing. There are functions to get the updates and clear the queue after saving the updates in Onyx. | ||
|
||
let queuedOnyxUpdates: OnyxUpdate[] = []; | ||
Onyx.connect({ | ||
key: ONYXKEYS.QUEUED_ONYX_UPDATES, | ||
callback: (val) => (queuedOnyxUpdates = val ?? []), | ||
}); | ||
|
||
/** | ||
* @param updates Onyx updates to queue for later | ||
*/ | ||
function queueOnyxUpdates(updates: OnyxUpdate[]): Promise<void> { | ||
return Onyx.set(ONYXKEYS.QUEUED_ONYX_UPDATES, [...queuedOnyxUpdates, ...updates]); | ||
} | ||
|
||
function clear() { | ||
Onyx.set(ONYXKEYS.QUEUED_ONYX_UPDATES, null); | ||
queuedOnyxUpdates = queuedOnyxUpdates.concat(updates); | ||
return Promise.resolve(); | ||
} | ||
|
||
function flushQueue(): Promise<void> { | ||
return Onyx.update(queuedOnyxUpdates).then(clear); | ||
return Onyx.update(queuedOnyxUpdates).then(() => { | ||
queuedOnyxUpdates = []; | ||
}); | ||
} | ||
|
||
export {queueOnyxUpdates, flushQueue}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.