snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
23
react/features/share-room/reducer.ts
Normal file
23
react/features/share-room/reducer.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import ReducerRegistry from '../base/redux/ReducerRegistry';
|
||||
|
||||
import { TOGGLE_SHARE_DIALOG } from './actionTypes';
|
||||
|
||||
const DEFAULT_STATE = {
|
||||
shareDialogVisible: false
|
||||
};
|
||||
|
||||
export interface IShareRoomState {
|
||||
shareDialogVisible: boolean;
|
||||
}
|
||||
|
||||
ReducerRegistry.register<IShareRoomState>('features/share-room', (state = DEFAULT_STATE, action): IShareRoomState => {
|
||||
switch (action.type) {
|
||||
case TOGGLE_SHARE_DIALOG:
|
||||
return {
|
||||
...state,
|
||||
shareDialogVisible: action.visible
|
||||
};
|
||||
}
|
||||
|
||||
return state;
|
||||
});
|
||||
Reference in New Issue
Block a user