Skip colors

pull/3919/head
Kamran Ahmed 2 years ago
parent fd349f2da8
commit 4a049b2a7a
  1. 2
      src/components/FrameRenderer/FrameRenderer.css
  2. 16
      src/components/TopicDetail/TopicProgressButton.tsx

@ -58,7 +58,7 @@ svg .learning rect {
} }
svg .skipped rect { svg .skipped rect {
fill: #ff665a !important; fill: #ff6e6e !important;
} }
svg .learning rect[fill='rgb(51,51,51)'] + text, svg .learning rect[fill='rgb(51,51,51)'] + text,

@ -133,26 +133,26 @@ export function TopicProgressButton(props: TopicProgressButtonProps) {
Done Done
</button> </button>
)} )}
{allowMarkingPending && ( {allowMarkingLearning && (
<button <button
class="px-3 py-1.5 text-left text-sm text-gray-800 hover:bg-gray-100" class="px-3 py-1.5 text-left text-sm text-gray-800 hover:bg-gray-100"
onClick={() => handleUpdateResourceProgress('pending')} onClick={() => handleUpdateResourceProgress('learning')}
> >
<span <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> ></span>
Pending In Progress
</button> </button>
)} )}
{allowMarkingLearning && ( {allowMarkingPending && (
<button <button
class="px-3 py-1.5 text-left text-sm text-gray-800 hover:bg-gray-100" class="px-3 py-1.5 text-left text-sm text-gray-800 hover:bg-gray-100"
onClick={() => handleUpdateResourceProgress('learning')} onClick={() => handleUpdateResourceProgress('pending')}
> >
<span <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> ></span>
In Progress Pending
</button> </button>
)} )}
{allowMarkingSkipped && ( {allowMarkingSkipped && (

Loading…
Cancel
Save