mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-16 06:04:24 +02:00
Update user progress
This commit is contained in:
@@ -65,14 +65,14 @@ export function TeamActivityItem(props: TeamActivityItemProps) {
|
||||
const username = (
|
||||
<a
|
||||
href={`/team/member?t=${teamId}&m=${user?.memberId}`}
|
||||
className="inline-flex items-center underline underline-offset-2 hover:no-underline"
|
||||
className="inline-flex items-center gap-1.5 underline underline-offset-2 hover:underline"
|
||||
>
|
||||
<img
|
||||
className="mr-1 inline-block h-5 w-5 rounded-full"
|
||||
className="inline-block h-5 w-5 rounded-full"
|
||||
src={userAvatar}
|
||||
alt={user.name}
|
||||
/>
|
||||
<span className="font-medium">{user?.name || 'Unknown'}</span>
|
||||
<span className="font-medium">{user?.name || 'Unknown'}</span>
|
||||
</a>
|
||||
);
|
||||
|
||||
@@ -84,11 +84,11 @@ export function TeamActivityItem(props: TeamActivityItemProps) {
|
||||
return (
|
||||
<li
|
||||
key={user._id}
|
||||
className="flex flex-wrap items-center rounded-md border px-2 py-2.5 text-sm"
|
||||
className="flex flex-wrap items-center gap-1 rounded-md border px-2 py-2.5 text-sm"
|
||||
>
|
||||
{actionType === 'in_progress' && (
|
||||
<>
|
||||
<p className="mb-1">
|
||||
<p className="mb-1 flex w-full flex-wrap items-center">
|
||||
{username} started
|
||||
{topicCount} topic{topicCount > 1 ? 's' : ''} in
|
||||
{resourceLink(activity)}
|
||||
@@ -102,7 +102,7 @@ export function TeamActivityItem(props: TeamActivityItemProps) {
|
||||
)}
|
||||
{actionType === 'done' && (
|
||||
<>
|
||||
<p className="mb-1">
|
||||
<p className="mb-1 flex w-full flex-wrap items-center">
|
||||
{username} completed
|
||||
{topicCount} topic{topicCount > 1 ? 's' : ''} in
|
||||
{resourceLink(activity)}
|
||||
@@ -116,7 +116,7 @@ export function TeamActivityItem(props: TeamActivityItemProps) {
|
||||
)}
|
||||
{actionType === 'answered' && (
|
||||
<>
|
||||
<p className="mb-1">
|
||||
<p className="mb-1 flex w-full flex-wrap items-center">
|
||||
{username} answered
|
||||
{topicCount} question{topicCount > 1 ? 's' : ''}
|
||||
in
|
||||
@@ -141,7 +141,7 @@ export function TeamActivityItem(props: TeamActivityItemProps) {
|
||||
|
||||
return (
|
||||
<li key={user._id} className="overflow-hidden rounded-md border">
|
||||
<h3 className="flex flex-wrap items-center bg-gray-100 px-2 py-2.5 text-sm">
|
||||
<h3 className="flex flex-wrap items-center gap-1 bg-gray-100 px-2 py-2.5 text-sm">
|
||||
{username} has {activities.length} updates in {uniqueResourcesCount}
|
||||
resource(s)
|
||||
</h3>
|
||||
|
Reference in New Issue
Block a user