feat(shifts): add client name support in OpenShift and RecommendedShiftCard
This commit is contained in:
@@ -78,7 +78,9 @@ class RecommendedShiftCard extends StatelessWidget {
|
||||
children: <Widget>[
|
||||
Flexible(
|
||||
child: Text(
|
||||
shift.roleName,
|
||||
shift.roleName.isNotEmpty
|
||||
? shift.roleName
|
||||
: shift.clientName,
|
||||
style: UiTypography.body1m.textPrimary,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
@@ -94,7 +96,9 @@ class RecommendedShiftCard extends StatelessWidget {
|
||||
spacing: UiConstants.space1,
|
||||
children: <Widget>[
|
||||
Text(
|
||||
shift.orderType.toJson(),
|
||||
shift.clientName.isNotEmpty
|
||||
? shift.clientName
|
||||
: shift.orderType.toJson(),
|
||||
style: UiTypography.body3r.textSecondary,
|
||||
),
|
||||
Text(
|
||||
|
||||
Reference in New Issue
Block a user