|
|
|
@ -133,26 +133,26 @@ export function TopicProgressButton(props: TopicProgressButtonProps) { |
|
|
|
|
Done |
|
|
|
|
</button> |
|
|
|
|
)} |
|
|
|
|
{allowMarkingPending && ( |
|
|
|
|
{allowMarkingLearning && ( |
|
|
|
|
<button |
|
|
|
|
class="px-3 py-1.5 text-left text-sm text-gray-800 hover:bg-gray-100" |
|
|
|
|
onClick={() => handleUpdateResourceProgress('pending')} |
|
|
|
|
onClick={() => handleUpdateResourceProgress('learning')} |
|
|
|
|
> |
|
|
|
|
<span |
|
|
|
|
class={`mr-2 inline-block h-2 w-2 rounded-full ${statusColors['pending']}`} |
|
|
|
|
class={`mr-2 inline-block h-2 w-2 rounded-full ${statusColors['learning']}`} |
|
|
|
|
></span> |
|
|
|
|
Pending |
|
|
|
|
In Progress |
|
|
|
|
</button> |
|
|
|
|
)} |
|
|
|
|
{allowMarkingLearning && ( |
|
|
|
|
{allowMarkingPending && ( |
|
|
|
|
<button |
|
|
|
|
class="px-3 py-1.5 text-left text-sm text-gray-800 hover:bg-gray-100" |
|
|
|
|
onClick={() => handleUpdateResourceProgress('learning')} |
|
|
|
|
onClick={() => handleUpdateResourceProgress('pending')} |
|
|
|
|
> |
|
|
|
|
<span |
|
|
|
|
class={`mr-2 inline-block h-2 w-2 rounded-full ${statusColors['learning']}`} |
|
|
|
|
class={`mr-2 inline-block h-2 w-2 rounded-full ${statusColors['pending']}`} |
|
|
|
|
></span> |
|
|
|
|
In Progress |
|
|
|
|
Pending |
|
|
|
|
</button> |
|
|
|
|
)} |
|
|
|
|
{allowMarkingSkipped && ( |
|
|
|
|