This repository was archived by the owner on Feb 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
ui/src/dialogPages/global Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,13 @@ import { FormValidationResult } from '../../hooks/form/useFormValidation';
1313import { ApolloError } from '@apollo/client/errors' ;
1414import OrgTransferOwnershipForm from '../../components/organisms/Forms/OrgTransferOwnershipForm' ;
1515import { DialogPreloadForm , DialogPreloadFormProps } from '../abstractions/DialogPreloadForm' ;
16+ import { toOrg } from '../../utils/NavigationPaths' ;
17+ import { useRouter } from 'next/router' ;
1618
1719const OrgTransferOwnership : FC < DialogPageProps > = ( props : DialogPageProps ) => {
18- const duplicateProps : DialogPreloadFormProps <
20+ const router = useRouter ( ) ;
21+
22+ const transferProps : DialogPreloadFormProps <
1923 OrgTransferOwnershipGetData ,
2024 OrgTransferOwnershipValues ,
2125 OrgTransferOwnershipFormProps ,
@@ -64,7 +68,10 @@ const OrgTransferOwnership: FC<DialogPageProps> = (props: DialogPageProps) => {
6468 OrgTransferOwnershipFormProps ,
6569 OrgTransferOwnershipResult
6670 >
67- { ...duplicateProps }
71+ { ...transferProps }
72+ pageRefresh = { ( ) => {
73+ router . push ( toOrg ( { id : props . id } , 'users' ) ) . then ( ) ;
74+ } }
6875 />
6976 ) ;
7077} ;
You can’t perform that action at this time.
0 commit comments