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),
|
ShiftCardTitleRow(data: data),
|
||||||
const SizedBox(height: UiConstants.space2),
|
const SizedBox(height: UiConstants.space2),
|
||||||
ShiftCardMetadataRows(data: data),
|
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:
|
case ShiftCardVariant.cancelled:
|
||||||
return ShiftCardStatusStyle(
|
return ShiftCardStatusStyle(
|
||||||
label: context.t.staff_shifts.my_shifts_tab.card.cancelled,
|
label: context.t.staff_shifts.my_shifts_tab.card.cancelled,
|
||||||
foreground: UiColors.destructive,
|
foreground: UiColors.mutedForeground,
|
||||||
dot: UiColors.destructive,
|
dot: UiColors.mutedForeground,
|
||||||
);
|
);
|
||||||
case ShiftCardVariant.completed:
|
case ShiftCardVariant.completed:
|
||||||
return ShiftCardStatusStyle(
|
return ShiftCardStatusStyle(
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ class ShiftSectionList extends StatelessWidget {
|
|||||||
SectionHeader(
|
SectionHeader(
|
||||||
title:
|
title:
|
||||||
context.t.staff_shifts.my_shifts_tab.sections.confirmed,
|
context.t.staff_shifts.my_shifts_tab.sections.confirmed,
|
||||||
dotColor: UiColors.textSecondary,
|
dotColor: UiColors.textSuccess,
|
||||||
),
|
),
|
||||||
...assignedShifts.map(
|
...assignedShifts.map(
|
||||||
(AssignedShift shift) {
|
(AssignedShift shift) {
|
||||||
|
|||||||
Reference in New Issue
Block a user