Skip to content

Commit be1c25f

Browse files
committed
updated badge variant
1 parent a03e47e commit be1c25f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/dashboard/components/quiz-attempt-row.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
$show_course = $show_course ?? false;
2828
$attempt_number = $attempt_number ?? null;
2929
$attempts_count = $attempts_count ?? 0;
30-
$badge = Badge::make()->label( 'Failed' )->variant( Variant::CANCELLED )->rounded();
30+
$badge = Badge::make()->label( 'Failed' )->variant( Badge::ERROR )->rounded();
3131
$kebab_button = Button::make()
3232
->icon( Icon::THREE_DOTS_VERTICAL )
3333
->attr( 'x-ref', 'trigger' )
@@ -131,12 +131,12 @@
131131
if ( QuizModel::RESULT_PASS === $attempt['result'] ) {
132132
$badge
133133
->label( __( 'Passed', 'tutor' ) )
134-
->variant( Variant::COMPLETED )
134+
->variant( Badge::SUCCESS )
135135
->render();
136136
} elseif ( QuizModel::RESULT_PENDING === $attempt['result'] ) {
137137
$badge
138138
->label( __( 'Pending', 'tutor' ) )
139-
->variant( Variant::PENDING )
139+
->variant( Badge::WARNING )
140140
->render();
141141
} else {
142142
$badge->render();

0 commit comments

Comments
 (0)