feat: Update shift card styles and remove cancellation reason display
This commit is contained in:
@@ -26,16 +26,6 @@ class ShiftCardBody extends StatelessWidget {
|
||||
ShiftCardTitleRow(data: data),
|
||||
const SizedBox(height: UiConstants.space2),
|
||||
ShiftCardMetadataRows(data: data),
|
||||
if (data.cancellationReason != null &&
|
||||
data.cancellationReason!.isNotEmpty) ...<Widget>[
|
||||
const SizedBox(height: UiConstants.space1),
|
||||
Text(
|
||||
data.cancellationReason!,
|
||||
style: UiTypography.footnote2r.textSecondary,
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -70,8 +70,8 @@ class ShiftCardStatusBadge extends StatelessWidget {
|
||||
case ShiftCardVariant.cancelled:
|
||||
return ShiftCardStatusStyle(
|
||||
label: context.t.staff_shifts.my_shifts_tab.card.cancelled,
|
||||
foreground: UiColors.destructive,
|
||||
dot: UiColors.destructive,
|
||||
foreground: UiColors.mutedForeground,
|
||||
dot: UiColors.mutedForeground,
|
||||
);
|
||||
case ShiftCardVariant.completed:
|
||||
return ShiftCardStatusStyle(
|
||||
|
||||
@@ -101,7 +101,7 @@ class ShiftSectionList extends StatelessWidget {
|
||||
SectionHeader(
|
||||
title:
|
||||
context.t.staff_shifts.my_shifts_tab.sections.confirmed,
|
||||
dotColor: UiColors.textSecondary,
|
||||
dotColor: UiColors.textSuccess,
|
||||
),
|
||||
...assignedShifts.map(
|
||||
(AssignedShift shift) {
|
||||
|
||||
Reference in New Issue
Block a user