add sound selector

This commit is contained in:
Mario Pesch
2021-12-13 15:35:25 +01:00
parent 59a226f22e
commit 258f0f0841
9 changed files with 110 additions and 3 deletions
+15 -1
View File
@@ -1,4 +1,11 @@
import { VISIT, LANGUAGE, RENDERER, STATISTICS, PLATFORM } from "./types";
import {
VISIT,
LANGUAGE,
RENDERER,
SOUNDS,
STATISTICS,
PLATFORM,
} from "./types";
export const visitPage = () => (dispatch) => {
dispatch({
@@ -30,6 +37,13 @@ export const setRenderer = (renderer) => (dispatch) => {
});
};
export const setSounds = (sounds) => (dispatch) => {
dispatch({
type: SOUNDS,
payload: sounds,
});
};
export const setStatistics = (showStatistics) => (dispatch) => {
dispatch({
type: STATISTICS,