{datum.isReadMoreEnabled ? 'Less' : 'More'}
@@ -55,38 +60,15 @@ export default function ProgressUpdateCardPresentation({
data-testid="progress-update-card-container"
onClick={onCardClick}
>
-
-
- {titleToShow}
-
-
- event.stopPropagation()}
- data-testid="progress-update-card-date"
- >
-
-
- {dateInAgoFormat}
-
-
-
-
-
+
) => void;
export type ProgressUpdateCardPresentationProps = {
titleToShow: string;
dateInAgoFormat: string;
+ username: string;
+ userProfileImageUrl: string;
tooltipString: string;
dataToShowState: ProgressUpdateDataToShow[];
onMoreOrLessButtonClick: (
@@ -22,6 +24,8 @@ export type ProgressUpdateCardPresentationProps = {
export type LatestProgressUpdateCardPresentationProps = {
dataToShowState: ProgressUpdateDataToShow[];
+ username: string;
+ userProfileImageUrl: string;
tooltipText: string;
onMoreOrLessButtonClick: (
e: MouseEvent,
@@ -38,3 +42,13 @@ export type ProgressUpdateDataToShow = {
shouldReadMoreButtonShow: boolean;
isReadMoreEnabled: boolean;
};
+
+export type ProgressUpdateCardOverviewProps = {
+ titleToShow: string;
+ dateInAgoFormat: string;
+ username: string;
+ userProfileImageUrl: string;
+ tooltipString: string;
+ isDevMode: boolean;
+ isExpanded: boolean;
+};
diff --git a/src/interfaces/user.type.ts b/src/interfaces/user.type.ts
index 3539164b1..c56229fec 100644
--- a/src/interfaces/user.type.ts
+++ b/src/interfaces/user.type.ts
@@ -16,7 +16,7 @@ export type userDataType = {
archived: boolean;
admin: boolean;
super_user: boolean;
- memeber: boolean;
+ member: boolean;
};
designation?: string;
profileURL?: string;
diff --git a/src/types/standup.type.ts b/src/types/standup.type.ts
index 81811bb81..2be6ea425 100644
--- a/src/types/standup.type.ts
+++ b/src/types/standup.type.ts
@@ -1,3 +1,5 @@
+import { userDataType } from '@/interfaces/user.type';
+
export type standupUpdateType = {
type: string;
completed: string;
@@ -23,7 +25,7 @@ export type ProgressDetailsData = {
id: string;
planned: string;
type: string;
- userId: string;
+ userData?: userDataType;
taskId?: string;
};