Add tooltips for hotkeys
parent
639b429d9d
commit
bbb8f67dff
|
|
@ -110,6 +110,10 @@ class Me extends React.Component
|
||||||
{connected ?
|
{connected ?
|
||||||
<div className={classnames('controls', 'visible')}>
|
<div className={classnames('controls', 'visible')}>
|
||||||
<div
|
<div
|
||||||
|
data-tip='keyboard shortcut: ‘m‘'
|
||||||
|
data-type='dark'
|
||||||
|
data-place='bottom'
|
||||||
|
data-for='me'
|
||||||
className={classnames('button', 'mic', micState, {
|
className={classnames('button', 'mic', micState, {
|
||||||
disabled : me.audioInProgress,
|
disabled : me.audioInProgress,
|
||||||
visible : micState == 'off' || this.state.controlsVisible
|
visible : micState == 'off' || this.state.controlsVisible
|
||||||
|
|
@ -119,7 +123,10 @@ class Me extends React.Component
|
||||||
micState === 'on' ? onMuteMic() : onUnmuteMic();
|
micState === 'on' ? onMuteMic() : onUnmuteMic();
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
<ReactTooltip
|
||||||
|
id='me'
|
||||||
|
effect='solid'
|
||||||
|
/>
|
||||||
<div
|
<div
|
||||||
className={classnames('button', 'webcam', webcamState, {
|
className={classnames('button', 'webcam', webcamState, {
|
||||||
disabled : me.webcamInProgress,
|
disabled : me.webcamInProgress,
|
||||||
|
|
@ -160,15 +167,6 @@ class Me extends React.Component
|
||||||
</div>
|
</div>
|
||||||
:null
|
:null
|
||||||
}
|
}
|
||||||
|
|
||||||
{this._tooltip ?
|
|
||||||
<ReactTooltip
|
|
||||||
effect='solid'
|
|
||||||
delayShow={100}
|
|
||||||
delayHide={100}
|
|
||||||
/>
|
|
||||||
:null
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import * as requestActions from '../redux/requestActions';
|
||||||
import * as stateActions from '../redux/stateActions';
|
import * as stateActions from '../redux/stateActions';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import Dropdown from 'react-dropdown';
|
import Dropdown from 'react-dropdown';
|
||||||
|
import ReactTooltip from 'react-tooltip';
|
||||||
|
|
||||||
const modes = [ {
|
const modes = [ {
|
||||||
value : 'democratic',
|
value : 'democratic',
|
||||||
|
|
@ -58,7 +59,14 @@ const Settings = ({
|
||||||
onChange={(device) => handleChangeAudioDevice(device.value)}
|
onChange={(device) => handleChangeAudioDevice(device.value)}
|
||||||
placeholder={audioDevicesText}
|
placeholder={audioDevicesText}
|
||||||
/>
|
/>
|
||||||
|
<ReactTooltip
|
||||||
|
effect='solid'
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
data-tip='keyboard shortcut: ‘a‘'
|
||||||
|
data-type='dark'
|
||||||
|
data-place='left'
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
id='room-mode'
|
id='room-mode'
|
||||||
type='checkbox'
|
type='checkbox'
|
||||||
|
|
@ -66,7 +74,13 @@ const Settings = ({
|
||||||
onChange={onToggleAdvancedMode}
|
onChange={onToggleAdvancedMode}
|
||||||
/>
|
/>
|
||||||
<label htmlFor='room-mode'>Advanced mode</label>
|
<label htmlFor='room-mode'>Advanced mode</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
data-tip='keyboard shortcut: type a digit'
|
||||||
|
data-type='dark'
|
||||||
|
data-place='left'
|
||||||
|
>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
options={modes}
|
options={modes}
|
||||||
value={findOption(modes, room.mode)}
|
value={findOption(modes, room.mode)}
|
||||||
|
|
@ -74,6 +88,7 @@ const Settings = ({
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue