diff --git a/src/features/binnacle/features/activity/ui/components/activities-list/activities-list-table.tsx b/src/features/binnacle/features/activity/ui/components/activities-list/activities-list-table.tsx index b7f4de62..72e3182c 100644 --- a/src/features/binnacle/features/activity/ui/components/activities-list/activities-list-table.tsx +++ b/src/features/binnacle/features/activity/ui/components/activities-list/activities-list-table.tsx @@ -21,6 +21,9 @@ export const ActivitiesListTable = ({ }: Props) => { const isMobile = useIsMobile() const { t } = useTranslation() + const isActivityApproved = (activity: Activity) => { + return activity.approval.state == 'ACCEPTED' + } const tableActivities = useMemo(() => { if (!activities) return [] @@ -83,9 +86,15 @@ export const ActivitiesListTable = ({ onOpenActivity(activity) }} > - {t('actions.edit')} + {!isActivityApproved(activity) ? t('actions.edit') : t('actions.show')} - + {!isActivityApproved(activity) && ( + + )} ) }