File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ type OpenDomainPageParams = {
2+ // The accountID of the domain whose data is being fetched
3+ domainAccountID : number ;
4+ } ;
5+
6+ export default OpenDomainPageParams ;
Original file line number Diff line number Diff line change @@ -487,6 +487,7 @@ export type {default as EnableGlobalReimbursementsForUSDBankAccountParams} from
487487export type { default as SendReminderForCorpaySignerInformationParams } from './SendReminderForCorpaySignerInformationParams' ;
488488export type { default as SendScheduleCallNudgeParams } from './SendScheduleCallNudge' ;
489489export type { default as DomainParams } from './DomainParams' ;
490+ export type { default as OpenDomainPageParams } from './OpenDomainPageParams' ;
490491export type { default as GetScimTokenParams } from './GetScimTokenParams' ;
491492export type { default as SetSamlIdentityParams } from './SetSamlIdentityParams' ;
492493export type { default as UpdateSamlEnabledParams } from './UpdateSamlEnabledParams' ;
Original file line number Diff line number Diff line change @@ -1292,7 +1292,7 @@ const READ_COMMANDS = {
12921292 GET_GUIDE_CALL_AVAILABILITY_SCHEDULE : 'GetGuideCallAvailabilitySchedule' ,
12931293 GET_TRANSACTIONS_FOR_MERGING : 'GetTransactionsForMerging' ,
12941294 GET_DOMAIN_VALIDATE_CODE : 'GetDomainValidateCode' ,
1295- OPEN_DOMAIN_INITIAL_PAGE : 'OpenDomainInitialPage ' ,
1295+ OPEN_DOMAIN_PAGE : 'OpenDomainPage ' ,
12961296 GET_SAML_SETTINGS : 'GetSAMLSettings' ,
12971297 GET_DUPLICATE_TRANSACTION_DETAILS : 'GetDuplicateTransactionDetails' ,
12981298 GET_TRANSACTIONS_MATCHING_CODING_RULE : 'GetTransactionsMatchingCodingRule' ,
@@ -1390,7 +1390,7 @@ type ReadCommandParameters = {
13901390 [ READ_COMMANDS . GET_TRANSACTIONS_FOR_MERGING ] : Parameters . GetTransactionsForMergingParams ;
13911391 [ READ_COMMANDS . GET_SAML_SETTINGS ] : Parameters . DomainParams ;
13921392 [ READ_COMMANDS . GET_DOMAIN_VALIDATE_CODE ] : Parameters . DomainParams ;
1393- [ READ_COMMANDS . OPEN_DOMAIN_INITIAL_PAGE ] : Parameters . DomainParams ;
1393+ [ READ_COMMANDS . OPEN_DOMAIN_PAGE ] : Parameters . OpenDomainPageParams ;
13941394 [ READ_COMMANDS . GET_DUPLICATE_TRANSACTION_DETAILS ] : Parameters . GetDuplicateTransactionDetailsParams ;
13951395 [ READ_COMMANDS . GET_TRANSACTIONS_MATCHING_CODING_RULE ] : Parameters . GetTransactionsMatchingCodingRuleParams ;
13961396 [ READ_COMMANDS . GET_ASSIGNED_SUPPORT_DATA ] : null ;
Original file line number Diff line number Diff line change @@ -117,8 +117,8 @@ function resetDomainValidationError(accountID: number) {
117117 * Fetches the latest domain data from the server,
118118 * when accessing the domain initial page
119119 */
120- function openDomainInitialPage ( domainName : string ) {
121- API . read ( READ_COMMANDS . OPEN_DOMAIN_INITIAL_PAGE , { domainName } ) ;
120+ function openDomainPage ( domainAccountID : number ) {
121+ API . read ( READ_COMMANDS . OPEN_DOMAIN_PAGE , { domainAccountID } ) ;
122122}
123123
124124/**
@@ -2299,7 +2299,7 @@ export {
22992299 getDomainValidationCode ,
23002300 validateDomain ,
23012301 resetDomainValidationError ,
2302- openDomainInitialPage ,
2302+ openDomainPage ,
23032303 getSamlSettings ,
23042304 setSamlEnabled ,
23052305 resetSamlEnabledError ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import useResponsiveLayout from '@hooks/useResponsiveLayout';
2121import useSingleExecution from '@hooks/useSingleExecution' ;
2222import useThemeStyles from '@hooks/useThemeStyles' ;
2323import useWaitForNavigation from '@hooks/useWaitForNavigation' ;
24- import { openDomainInitialPage } from '@libs/actions/Domain' ;
24+ import { openDomainPage } from '@libs/actions/Domain' ;
2525import { hasDomainAdminsErrors , hasDomainMembersErrors } from '@libs/DomainUtils' ;
2626import Navigation from '@libs/Navigation/Navigation' ;
2727import type { PlatformStackScreenProps } from '@libs/Navigation/PlatformStackNavigation/types' ;
@@ -90,11 +90,11 @@ function DomainInitialPage({route}: DomainInitialPageProps) {
9090 ] ;
9191
9292 const fetchDomainData = useCallback ( ( ) => {
93- if ( ! domainName ) {
93+ if ( ! domainAccountID ) {
9494 return ;
9595 }
96- openDomainInitialPage ( domainName ) ;
97- } , [ domainName ] ) ;
96+ openDomainPage ( domainAccountID ) ;
97+ } , [ domainAccountID ] ) ;
9898
9999 useEffect ( ( ) => {
100100 fetchDomainData ( ) ;
You can’t perform that action at this time.
0 commit comments