@@ -2,7 +2,7 @@ import { clsx } from 'clsx';
22import { type FC , useRef , useState } from 'react' ;
33import { useSelector } from 'react-redux' ;
44
5- import type { TransitionAction } from '~transitions' ;
5+ import type { StagedAction } from '~transitions' ;
66
77import { Cross , Spinner } from '~usecases/lib/components/todo/Icons' ;
88import { useActivityState } from '~usecases/lib/store/activity/hooks' ;
@@ -22,7 +22,7 @@ type ActivityItemProps = {
2222 entry : ActivityEntry ;
2323 onEdit : ( entry : ActivityEntry ) => void ;
2424 onDismiss : ( entry : ActivityEntry ) => void ;
25- onRetry : ( action : TransitionAction ) => void ;
25+ onRetry : ( action : StagedAction ) => void ;
2626} ;
2727
2828const ActivityItem : FC < ActivityItemProps > = ( { entry, onEdit, onDismiss, onRetry } ) => {
@@ -35,9 +35,9 @@ const ActivityItem: FC<ActivityItemProps> = ({ entry, onEdit, onDismiss, onRetry
3535 if ( ! message || message === entry . message ) return ;
3636
3737 if ( failedAction ) {
38- const { payload } = failedAction as any ;
38+ const { payload } = failedAction as StagedAction < { item : ActivityEntry } > ;
3939 const retry = { ...failedAction , payload : { ...payload , item : { ...payload . item , message } } } ;
40- onRetry ( retry as TransitionAction ) ;
40+ onRetry ( retry ) ;
4141 } else {
4242 onEdit ( { ...entry , message, revision : entry . revision + 1 } ) ;
4343 }
@@ -99,7 +99,7 @@ type Props = {
9999 onLogActivity : ( entry : ActivityEntry ) => void ;
100100 onEditActivity : ( entry : ActivityEntry ) => void ;
101101 onDismissActivity : ( entry : ActivityEntry ) => void ;
102- onRetry : ( action : TransitionAction ) => void ;
102+ onRetry : ( action : StagedAction ) => void ;
103103} ;
104104
105105export const ActivityFeed : FC < Props > = ( { onLogActivity, onEditActivity, onDismissActivity, onRetry } ) => {
0 commit comments