blob: b894c64523d6953b603d1c4f63f8f6395357d26d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import * as types from 'app/types'
import { api, post, pad, preloadImage } from 'app/utils'
export const loadPeaks = (asdf) => dispatch => {
api(dispatch, types.peaks, 'peaks', '/static/data_store/peaks/peaks.json')
}
export const loadText = (asdf) => dispatch => {
api(dispatch, types.text, 'text', '/static/data_store/peaks/text.txt')
}
export const updateText = text => dispatch => {
dispatch({ type: types.text.loaded, data: text })
}
|