Changed name from lastN to spotlights

This commit is contained in:
Håvar Aambø Fosstveit
2018-10-29 16:05:54 +01:00
parent ed5ef29fba
commit aeaaa010c5
6 changed files with 183 additions and 47 deletions
+4 -4
View File
@@ -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:
+3 -3
View File
@@ -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 }
});