fix(clock_in): restore early check-in banner logic for active shifts
This commit is contained in:
@@ -105,21 +105,21 @@ class ClockInActionSection extends StatelessWidget {
|
|||||||
|
|
||||||
/// Builds the action widget for an active (not completed) shift.
|
/// Builds the action widget for an active (not completed) shift.
|
||||||
Widget _buildActiveShiftAction(BuildContext context) {
|
Widget _buildActiveShiftAction(BuildContext context) {
|
||||||
// if (!isCheckedIn && !ClockInHelpers.isCheckInAllowed(selectedShift!)) {
|
if (!isCheckedIn && !ClockInHelpers.isCheckInAllowed(selectedShift!)) {
|
||||||
// return Column(
|
return Column(
|
||||||
// mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
// children: <Widget>[
|
children: <Widget>[
|
||||||
// const GeofenceStatusBanner(),
|
const GeofenceStatusBanner(),
|
||||||
// const SizedBox(height: UiConstants.space3),
|
const SizedBox(height: UiConstants.space3),
|
||||||
// EarlyCheckInBanner(
|
EarlyCheckInBanner(
|
||||||
// availabilityTime: ClockInHelpers.getCheckInAvailabilityTime(
|
availabilityTime: ClockInHelpers.getCheckInAvailabilityTime(
|
||||||
// selectedShift!,
|
selectedShift!,
|
||||||
// context,
|
context,
|
||||||
// ),
|
),
|
||||||
// ),
|
),
|
||||||
// ],
|
],
|
||||||
// );
|
);
|
||||||
// }
|
}
|
||||||
|
|
||||||
return BlocBuilder<GeofenceBloc, GeofenceState>(
|
return BlocBuilder<GeofenceBloc, GeofenceState>(
|
||||||
builder: (BuildContext context, GeofenceState geofenceState) {
|
builder: (BuildContext context, GeofenceState geofenceState) {
|
||||||
|
|||||||
Reference in New Issue
Block a user