diff --git a/src/components/claimedBy/index.ts b/src/components/claimedBy/index.ts
deleted file mode 100644
index 02dd01b..0000000
--- a/src/components/claimedBy/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import ClaimedBy from "./ClaimedBy";
-export default ClaimedBy;
\ No newline at end of file
diff --git a/src/components/demonstrateGoal/demonstrateTable/DemonstrateTableStudent.tsx b/src/components/demonstrateGoal/demonstrateTable/DemonstrateTableStudent.tsx
index 5fbac2c..dec0ac7 100644
--- a/src/components/demonstrateGoal/demonstrateTable/DemonstrateTableStudent.tsx
+++ b/src/components/demonstrateGoal/demonstrateTable/DemonstrateTableStudent.tsx
@@ -6,7 +6,7 @@ import { useTranslation } from "react-i18next";
import { Skeleton6row3column } from "../../../constantTemplates/SkeletonTable";
import { AchievementsResponse } from "../../../models/AchievementsResponse";
import { User } from "../../../models/User";
-import ClaimedBy from "../../claimedBy";
+import UserProfile from "../../userProfile";
import GenericTable from "../../genericTable/GenericTable";
import PassedTime from "../../passedTime";
import { withUser } from "../../userContext";
@@ -75,7 +75,7 @@ function DemonstrateTableStudent(props: DemonstrateTableProps & EContextValue) {
- {row.examiner ? : }
+ {row.examiner ? : }
);
diff --git a/src/components/demonstrateGoal/demonstrateTable/DemonstrateTableTeacher.tsx b/src/components/demonstrateGoal/demonstrateTable/DemonstrateTableTeacher.tsx
index 9bb415c..e5576a9 100644
--- a/src/components/demonstrateGoal/demonstrateTable/DemonstrateTableTeacher.tsx
+++ b/src/components/demonstrateGoal/demonstrateTable/DemonstrateTableTeacher.tsx
@@ -16,7 +16,7 @@ import { DemonstrateRequest } from "../../../models/DemonstrateRequest";
import { User } from "../../../models/User";
import axios from "../../../utils/axios";
import AchievementHoverLabel from "../../achievementHoverLabel";
-import ClaimedBy from "../../claimedBy";
+import UserProfile from "../../userProfile";
import GenericTable from "../../genericTable";
import GradeStudent, { SelectedDemonstration } from "../../gradeStudent/GradeStudent";
import PassedTime from "../../passedTime";
@@ -141,16 +141,19 @@ function DemonstrateTableTeacher(props: DemonstrateTableProps & EContextValue) {
return (
- {row.submitters
- .map((user) => user.firstName + " " + user.lastName)
- .join(", ")}
+ {row.submitters.map((submitter, index) => (
+
+
+ {index !== row.submitters.length - 1 && ", "}
+
+ ))}
{row.examiner ? (
-
+
) : (
)}
diff --git a/src/components/help/helpTable/HelpTableStudent.tsx b/src/components/help/helpTable/HelpTableStudent.tsx
index 295c191..761a789 100644
--- a/src/components/help/helpTable/HelpTableStudent.tsx
+++ b/src/components/help/helpTable/HelpTableStudent.tsx
@@ -4,7 +4,7 @@ import TableRow from "@material-ui/core/TableRow";
import React from "react";
import { useTranslation } from "react-i18next";
import { Skeleton6row3column } from "../../../constantTemplates/SkeletonTable";
-import ClaimedBy from "../../claimedBy";
+import UserProfile from "../../userProfile";
import GenericTable from "../../genericTable";
import { withUser } from "../../userContext";
import { EContextValue } from "../../userContext/UserContext";
@@ -63,7 +63,7 @@ function HelpTableStudent(props: HelpTableProps & EContextValue) {
- {row.helper ? : }
+ {row.helper ? : }
);
diff --git a/src/components/help/helpTable/HelpTableTeacher.tsx b/src/components/help/helpTable/HelpTableTeacher.tsx
index 42717b6..1f07638 100644
--- a/src/components/help/helpTable/HelpTableTeacher.tsx
+++ b/src/components/help/helpTable/HelpTableTeacher.tsx
@@ -14,7 +14,7 @@ import { Skeleton6row7column } from "../../../constantTemplates/SkeletonTable";
import { HelpRequest } from "../../../models/HelpRequest";
import axios from "../../../utils/axios";
import LinkifyText from "../../../utils/linkify";
-import ClaimedBy from "../../claimedBy";
+import UserProfile from "../../userProfile";
import GenericTable from "../../genericTable";
import PassedTime from "../../passedTime";
import { SafeButton } from "../../safeButton/SafeButton";
@@ -120,9 +120,12 @@ function HelpTableTeacher(props: HelpTableProps & EContextValue) {
return (
- {row.submitters
- .map((user) => user.firstName + " " + user.lastName)
- .join(", ")}
+ {row.submitters.map((submitter, index) => (
+
+
+ {index !== row.submitters.length - 1 && ", "}
+
+ ))}
{row.message}
@@ -133,7 +136,7 @@ function HelpTableTeacher(props: HelpTableProps & EContextValue) {
{row.helper ? (
-
+
) : (
)}
diff --git a/src/components/claimedBy/ClaimedBy.tsx b/src/components/userProfile/UserProfile.tsx
similarity index 68%
rename from src/components/claimedBy/ClaimedBy.tsx
rename to src/components/userProfile/UserProfile.tsx
index 7511380..b7dca1c 100644
--- a/src/components/claimedBy/ClaimedBy.tsx
+++ b/src/components/userProfile/UserProfile.tsx
@@ -5,27 +5,27 @@ import { fullName } from "../../utils/fullName";
import ProfilePicture from "../profilePicture";
interface Props {
- examiner: User;
+ user: User;
}
-const ClaimedBy = (props: Props) => {
+const UserProfile = (props: Props) => {
return (
<>
-
+
)
}
>
- {fullName(props.examiner)}
+ {fullName(props.user)}
>
);
};
-export default ClaimedBy;
+export default UserProfile;
diff --git a/src/components/userProfile/index.ts b/src/components/userProfile/index.ts
new file mode 100644
index 0000000..dec9c05
--- /dev/null
+++ b/src/components/userProfile/index.ts
@@ -0,0 +1,2 @@
+import UserProfile from "./UserProfile";
+export default UserProfile;
\ No newline at end of file