Rename class status "Failed" to "Try-again"
This commit is contained in:
@@ -668,8 +668,8 @@ export function ClassDetail(props) {
|
||||
{clazz.instructor !== user.id &&
|
||||
(userTraining ?
|
||||
<div>
|
||||
{ userTraining.attendance_status !== 'Failed' && <p>Status: {userTraining.attendance_status}</p>}
|
||||
{ userTraining.attendance_status === 'Failed' && <p>Status: Attempted</p>}
|
||||
<p>Status: {userTraining.attendance_status}</p>
|
||||
|
||||
<p>
|
||||
{userTraining.attendance_status === 'Withdrawn' ?
|
||||
<Button loading={loading} onClick={() => handleToggle('Waiting for payment')}>
|
||||
@@ -750,4 +750,4 @@ export function ClassDetail(props) {
|
||||
}
|
||||
</Container>
|
||||
);
|
||||
};
|
||||
};
|
||||
|
@@ -116,8 +116,8 @@ function AttendanceRow(props) {
|
||||
Rescheduled
|
||||
</Button>
|
||||
|
||||
<Button {...makeProps('Failed')}>
|
||||
Failed
|
||||
<Button {...makeProps('Try-again')}>
|
||||
Try-again
|
||||
</Button>
|
||||
|
||||
<Button {...makeProps('No-show')}>
|
||||
@@ -499,4 +499,4 @@ export function InstructorClassList(props) {
|
||||
}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user