canvas-lms/spec/coffeescripts/react_files
Dustin Cowles 0c0ea91ffc support mobile-specific prefix in FriendlyDateTime
FriendlyDateTime supports passing in a prefix, but then does not use
that on mobile. This causes issues where you must check and account for
mobile in all usages. This change adds the optional prefixMobile prop
to allow for easy application of a mobile-specific prefix. The default
behavior is unchanged.

fixes EVAL-2007
flag=assignments_2_student

Test plan:
- PreReqs:
  - Assignment Ehnancements - Student is enabled
  - A course with a student
- Create an assignment with a start and end date in the past
- As a student, view the assignment
- Observe the lock page with availability dates
- Shrink the viewport to mobile mode and observe the shorter date
  format: "<start-date> to <end-date>"

Change-Id: I5c39485bf36f6c479e04214dc25f03a91df9313b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/275502
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Syed Hussain <shussain@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Jody Sailor
2021-10-11 21:03:32 +00:00
..
components support mobile-specific prefix in FriendlyDateTime 2021-10-11 21:03:32 +00:00
modules rename some things 2021-04-06 01:12:49 +00:00
mockFilesENV.js spec: Run prettier on spec/coffeescripts 2019-10-10 19:33:55 +00:00