-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Expensify:main' into krishna2323/issue/36901
- Loading branch information
Showing
308 changed files
with
4,193 additions
and
4,276 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* We are disabling the lint rule that doesn't allow the usage of Onyx.connect outside libs | ||
* because the intent of this file is to mock the usage of react-native-onyx so we will have to mock the connect function | ||
*/ | ||
|
||
/* eslint-disable rulesdir/prefer-onyx-connect-in-libs */ | ||
import type {ConnectOptions, OnyxKey} from 'react-native-onyx'; | ||
import Onyx, {withOnyx} from 'react-native-onyx'; | ||
|
||
let connectCallbackDelay = 0; | ||
function addDelayToConnectCallback(delay: number) { | ||
connectCallbackDelay = delay; | ||
} | ||
|
||
type ReactNativeOnyxMock = { | ||
addDelayToConnectCallback: (delay: number) => void; | ||
} & typeof Onyx; | ||
|
||
type ConnectionCallback<TKey extends OnyxKey> = NonNullable<ConnectOptions<TKey>['callback']>; | ||
type ConnectionCallbackParams<TKey extends OnyxKey> = Parameters<ConnectionCallback<TKey>>; | ||
|
||
const reactNativeOnyxMock: ReactNativeOnyxMock = { | ||
...Onyx, | ||
connect: <TKey extends OnyxKey>(mapping: ConnectOptions<TKey>) => { | ||
const callback = (...params: ConnectionCallbackParams<TKey>) => { | ||
if (connectCallbackDelay > 0) { | ||
setTimeout(() => { | ||
(mapping.callback as (...args: ConnectionCallbackParams<TKey>) => void)?.(...params); | ||
}, connectCallbackDelay); | ||
} else { | ||
(mapping.callback as (...args: ConnectionCallbackParams<TKey>) => void)?.(...params); | ||
} | ||
}; | ||
return Onyx.connect({ | ||
...mapping, | ||
callback, | ||
}); | ||
}, | ||
addDelayToConnectCallback, | ||
}; | ||
|
||
export default reactNativeOnyxMock; | ||
export {withOnyx}; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
docs/articles/expensify-classic/settings/account-settings/Manage-devices.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,18 @@ | ||
--- | ||
title: Manage devices | ||
description: Control which devices can access your Expensify account | ||
--- | ||
<div id="expensify-classic" markdown="1"> | ||
|
||
You can see which devices have been used to access your Expensify account and even remove devices that you no longer want to have access to your account. | ||
|
||
{% include info.html %} | ||
This process is currently not available from the mobile app and must be completed from the Expensify website. | ||
{% include end-info.html %} | ||
|
||
1. Hover over Settings and click **Account**. | ||
2. Under Account Details, scroll down to the Device Management section. | ||
3. Click **Device Management** to expand the section. | ||
4. Review the devices that have access to your account. To remove access for a specific device, click **Revoke** next to it. | ||
|
||
</div> |
15 changes: 15 additions & 0 deletions
15
docs/articles/expensify-classic/settings/account-settings/Set-notifications.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,15 @@ | ||
--- | ||
title: Set notifications | ||
description: Select your Expensify notification preferences | ||
--- | ||
<div id="expensify-classic" markdown="1"> | ||
|
||
{% include info.html %} | ||
This process is currently not available from the mobile app and must be completed from the Expensify website. | ||
{% include end-info.html %} | ||
|
||
1. Hover over Settings and click **Account**. | ||
2. Click the **Preferences** tab on the left. | ||
3. Scroll down to the Contact Preferences section. | ||
4. Select the checkbox for the types of notifications you wish to receive. | ||
</div> |
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
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.