do some renaming

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-01-16 00:40:08 +00:00
parent e6ab18c9ba
commit 2b37fe7624
2 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ import * as sdk from "../../../index";
import * as Receipt from "../../../utils/Receipt";
import {Resizer} from '../../../resizer';
import {Layout, Distributor} from '../../../resizer/distributors/roomsublist2';
import {RovingTabIndexContextWrapper} from "../../../contexts/RovingTabIndexContext";
import {RovingTabIndexContextProvider} from "../../../contexts/RovingTabIndexContext";
const HIDE_CONFERENCE_CHANS = true;
const STANDARD_TAGS_REGEX = /^(m\.(favourite|lowpriority|server_notice)|im\.vector\.fake\.(invite|recent|direct|archived))$/;
@ -788,9 +788,9 @@ export default createReactClass({
onMouseMove={this.onMouseMove}
onMouseLeave={this.onMouseLeave}
>
<RovingTabIndexContextWrapper>
<RovingTabIndexContextProvider>
{ subListComponents }
</RovingTabIndexContextWrapper>
</RovingTabIndexContextProvider>
</div>
);
},

View file

@ -109,7 +109,7 @@ const reducer = (state, action) => {
}
};
export const RovingTabIndexContextWrapper = ({children}) => {
export const RovingTabIndexContextProvider = ({children}) => {
const [state, dispatch] = useReducer(reducer, {
activeRef: null,
refs: [],