Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

reducer.native.js 560B

12345678910111213141516171819202122232425
  1. // @flow
  2. import { ReducerRegistry } from '../base/redux';
  3. import { SET_SHARED_VIDEO_STATUS } from './actionTypes';
  4. /**
  5. * Reduces the Redux actions of the feature features/shared-video.
  6. */
  7. ReducerRegistry.register('features/shared-video', (state = {}, action) => {
  8. const { videoId, status, time, ownerId } = action;
  9. switch (action.type) {
  10. case SET_SHARED_VIDEO_STATUS:
  11. return {
  12. ...state,
  13. videoId,
  14. status,
  15. time,
  16. ownerId
  17. };
  18. default:
  19. return state;
  20. }
  21. });