Skip to content

Commit

Permalink
fix: after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-strzelec committed Feb 4, 2025
1 parent 23eb28b commit d6e8f88
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { type MotionAction } from '~types/motions.ts';
import { type ColonyAction } from '~types/graphql.ts';

export interface RevealStepProps {
startPollingAction: (pollingInterval: number) => void;
stopPollingAction: () => void;
actionData: MotionAction | undefined | null;
actionData: ColonyAction | undefined | null;
rootHash: string | undefined;
transactionId: string;
motionState?: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { type Expenditure } from '~types/graphql.ts';
import { type MotionAction } from '~types/motions.ts';
import { type ColonyAction, type Expenditure } from '~types/graphql.ts';
import { type RefetchExpenditureType } from '~v5/common/CompletedAction/partials/PaymentBuilder/types.ts';
import { type ModalProps } from '~v5/shared/Modal/types.ts';

Expand All @@ -8,5 +7,5 @@ export interface CancelModalProps extends ModalProps {
refetchExpenditure: RefetchExpenditureType;
isActionStaked: boolean;
onSuccess?: () => void;
actionData: MotionAction;
actionData: ColonyAction;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { type LockExpenditurePayload } from '~redux/sagas/expenditures/lockExpen
import Numeral from '~shared/Numeral/Numeral.tsx';
import SpinnerLoader from '~shared/Preloaders/SpinnerLoader.tsx';
import { DecisionMethod } from '~types/actions.ts';
import { type MotionAction } from '~types/motions.ts';
import { type ColonyAction } from '~types/graphql.ts';
import { notMaybe, notNull } from '~utils/arrays/index.ts';
import { MotionState } from '~utils/colonyMotions.ts';
import {
Expand Down Expand Up @@ -750,7 +750,7 @@ const PaymentBuilderWidget: FC<PaymentBuilderWidgetProps> = ({ action }) => {
<CancelModal
isOpen={isCancelModalOpen}
expenditure={expenditure}
actionData={action.motionData as unknown as MotionAction}
actionData={action.motionData as unknown as ColonyAction}
onClose={toggleOffCancelModal}
refetchExpenditure={refetchExpenditure}
isActionStaked={expenditure.isStaked}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import Numeral from '~shared/Numeral/Numeral.tsx';
import SpinnerLoader from '~shared/Preloaders/SpinnerLoader.tsx';
import { DecisionMethod, ExtendedColonyActionType } from '~types/actions.ts';
import { type ColonyAction } from '~types/graphql.ts';
import { type MotionAction } from '~types/motions.ts';
import { addressHasRoles } from '~utils/checks/userHasRoles.ts';
import { findDomainByNativeId } from '~utils/domains.ts';
import { formatText } from '~utils/intl.ts';
Expand Down Expand Up @@ -309,7 +308,7 @@ const SplitPayment = ({ action }: SplitPaymentProps) => {
onClose={toggleCancelModalOff}
refetchExpenditure={refetchExpenditure}
isActionStaked={expenditure.isStaked}
actionData={action.motionData as unknown as MotionAction}
actionData={action.motionData as unknown as ColonyAction}
/>
</>
);
Expand Down

0 comments on commit d6e8f88

Please sign in to comment.