Changed name from lastN to spotlights
This commit is contained in:
@@ -9,7 +9,7 @@ const initialState =
|
||||
toolbarsVisible : true,
|
||||
mode : 'democratic',
|
||||
selectedPeerName : null,
|
||||
lastN : []
|
||||
spotlights : []
|
||||
};
|
||||
|
||||
const room = (state = initialState, action) =>
|
||||
@@ -84,11 +84,11 @@ const room = (state = initialState, action) =>
|
||||
};
|
||||
}
|
||||
|
||||
case 'SET_LASTN':
|
||||
case 'SET_SPOTLIGHTS':
|
||||
{
|
||||
const { lastN } = action.payload;
|
||||
const { spotlights } = action.payload;
|
||||
|
||||
return { ...state, lastN };
|
||||
return { ...state, spotlights };
|
||||
}
|
||||
|
||||
default:
|
||||
|
||||
@@ -494,8 +494,8 @@ export const setSelectedPeer = (selectedPeerName) =>
|
||||
payload : { selectedPeerName }
|
||||
});
|
||||
|
||||
export const setLastN = (lastN) =>
|
||||
export const setSpotlights = (spotlights) =>
|
||||
({
|
||||
type : 'SET_LASTN',
|
||||
payload : { lastN }
|
||||
type : 'SET_SPOTLIGHTS',
|
||||
payload : { spotlights }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user