[x] The title includes the type of change [HOTFIX, FEATURE, etc]
[x] The PR title includes the ticket number in format of [WAYF-###]
[x] Documentation is updated to reflect change
Description
This PR includes the following proposed change(s):
useContext and useReducer implemented to set and use App data
AppProvider is wrapped around App to provide context to all the App's children
App component updated to remove call to locations endpoint
Locations and BCServices views updated to make use of custom hook useAppService
Splashscreen updated to make a call to setOnlineAppData, setOfflineAppData and setCurrentLocation depending on if app is online or offline (some updates in another ticket are needed)
Inital localStorage function created in utils and implemented in useAppService to save appData for offline mode
Pull Request Standards
HOTFIX
,FEATURE
,etc
][WAYF-###]
Description
This PR includes the following proposed change(s):