Skip to content

Commit

Permalink
Create an app action to update connectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivm committed Oct 19, 2023
1 parent fc6ce64 commit 44288bb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/App/App.actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ import {
DISABLE_TOUR,
ENABLE_ALL_TOURS,
SET_UNLOGGED_USER_LOCATION,
UPDATE_SYMBOLS_SETTINGS
UPDATE_SYMBOLS_SETTINGS,
UPDATE_CONNECTIVITY
} from './App.constants';

import { updateIsInFreeCountry } from '../../providers/SubscriptionProvider/SubscriptionProvider.actions';

export function updateConnectivity({ isConnected = false }) {
return {
type: UPDATE_CONNECTIVITY,
payload: isConnected
};
}

export function updateDisplaySettings(payload = {}) {
return {
type: UPDATE_DISPLAY_SETTINGS,
Expand Down

0 comments on commit 44288bb

Please sign in to comment.