Fix bug preventing setting room power levels

- don't use refs, use onChange of PowerSelector
 - store power levels as state in the RoomSetting component
This commit is contained in:
Luke Barnard 2018-02-28 16:16:44 +00:00
parent 567d83ba52
commit d3dc2a33b4
2 changed files with 128 additions and 96 deletions

View file

@ -1,8 +1,6 @@
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ReactDOM from 'react-dom';
import expect, {createSpy} from 'expect';
import sinon from 'sinon';
import Promise from 'bluebird';
import * as testUtils from '../../../test-utils';
import sdk from 'matrix-react-sdk';