onMoreOrLessButtonClick(e, datum)}
+ data-testid="progress-update-more-less-button"
className={
styles['progress-update-card__more-less-button']
}
@@ -59,34 +67,90 @@ export default function ProgressUpdateCardPresentation({
{titleToShow}
-
- event.stopPropagation()}
- data-testid="progress-update-card-date"
+ content={tooltipString}
>
-
event.stopPropagation()}
+ data-testid="progress-update-card-date"
>
- {dateInAgoFormat}
+
+
+ {dateInAgoFormat}
+
-
-
-
+
+
+ {isDevMode && (
+
event.stopPropagation()}
+ >
+ by
+
+ {' '}
+ {username}
+
+
+ )}
+
+
+
) => void;
export type ProgressUpdateCardPresentationProps = {
+ username: string;
+ userProfileImageUrl: string;
titleToShow: string;
dateInAgoFormat: string;
tooltipString: string;
@@ -21,6 +23,8 @@ export type ProgressUpdateCardPresentationProps = {
};
export type LatestProgressUpdateCardPresentationProps = {
+ username: string;
+ userProfileImageUrl: string;
dataToShowState: ProgressUpdateDataToShow[];
tooltipText: string;
onMoreOrLessButtonClick: (