File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,22 +37,22 @@ function appendCountryCode(phone: string): string {
3737
3838/**
3939 * MIGRATION STEP 1: Temporary function for transitioning away from Onyx.connect to useOnyx
40- *
40+ *
4141 * This function serves as a bridge during our migration from Onyx.connect to useOnyx hooks.
4242 * The main appendCountryCode() function currently uses countryCodeByIPOnyx (via Onyx.connect),
4343 * but UI components need to use useOnyx hooks for better React integration.
44- *
44+ *
4545 * Migration plan:
4646 * 1. Add this function with explicit countryCode parameter (current step)
47- * 2. Update UI components to use useOnyx(ONYXKEYS.COUNTRY_CODE)
47+ * 2. Update UI components to use useOnyx(ONYXKEYS.COUNTRY_CODE)
4848 * 3. Update UI components to call this function with explicit countryCode
4949 * 4. Remove Onyx.connect from main appendCountryCode function
5050 * 5. Remove this temporary function and update all calls to use main function
51- *
51+ *
5252 * @param phone - Phone number to append country code to
5353 * @param countryCode - Country code (e.g., "1" for US, "44" for UK)
5454 * @returns Phone number with country code appended
55- *
55+ *
5656 * TODO: Remove this function after completing Onyx.connect deprecation (issue #66329)
5757 */
5858function appendCountryCodeWithCountryCode ( phone : string , countryCode : string ) : string {
You can’t perform that action at this time.
0 commit comments