mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 16:47:46 +00:00
26 lines
455 B
JavaScript
26 lines
455 B
JavaScript
// @flow
|
|
|
|
import {
|
|
PROFILE_UPDATED
|
|
} from './actionTypes';
|
|
|
|
import { ReducerRegistry } from '../redux';
|
|
|
|
const DEFAULT_STATE = {
|
|
profile: {}
|
|
};
|
|
|
|
const STORE_NAME = 'features/base/profile';
|
|
|
|
ReducerRegistry.register(
|
|
STORE_NAME, (state = DEFAULT_STATE, action) => {
|
|
switch (action.type) {
|
|
case PROFILE_UPDATED:
|
|
return {
|
|
profile: action.profile
|
|
};
|
|
}
|
|
|
|
return state;
|
|
});
|