[ABANDONED] React/Redux front end for the Flexor social network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
320 B

5 years ago
  1. import { Action } from 'redux'
  2. import { Config } from 'src/types'
  3. export interface SetConfigAction extends Action {
  4. type: 'CONFIG_SET'
  5. payload: Config
  6. }
  7. export type ConfigActions = SetConfigAction
  8. export const setConfig = (config: Config): SetConfigAction => ({
  9. type: 'CONFIG_SET',
  10. payload: config
  11. })