Skip to content

Commit c6f34f6

Browse files
committed
Add onAfterTaxRegistrationExpired to preview
1 parent e927cb5 commit c6f34f6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Components.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,11 @@ export const ConnectTaxRegistrations = ({
759759
onLoaderStart,
760760
displayCountries,
761761
onAfterTaxRegistrationAdded,
762+
onAfterTaxRegistrationExpired,
762763
}: {
763764
displayCountries?: string[];
764765
onAfterTaxRegistrationAdded?: ({id}: {id: string}) => void;
766+
onAfterTaxRegistrationExpired?: ({id}: {id: string}) => void;
765767
} & CommonComponentProps): JSX.Element => {
766768
const {wrapper, component: taxRegistrations} =
767769
useCreateComponent('tax-registrations');
@@ -786,6 +788,14 @@ export const ConnectTaxRegistrations = ({
786788
}
787789
);
788790

791+
useUpdateWithSetter(
792+
taxRegistrations,
793+
onAfterTaxRegistrationExpired,
794+
(comp, val) => {
795+
comp.setOnAfterTaxRegistrationExpired(val);
796+
}
797+
);
798+
789799
return wrapper;
790800
};
791801

0 commit comments

Comments
 (0)