Remove 'setting-toggle.scss'

This commit is contained in:
Chewbacca 2022-11-16 14:35:20 -05:00
parent 44066a006a
commit 0ebdbc0f91
3 changed files with 1 additions and 10 deletions

View File

@ -11,11 +11,7 @@ const messages = defineMessages({
switchOff: { id: 'chats.audio_toggle_off', defaultMessage: 'Audio notification off' }, switchOff: { id: 'chats.audio_toggle_off', defaultMessage: 'Audio notification off' },
}); });
interface IAudioToggle { const AudioToggle: React.FC = () => {
showLabel?: boolean
}
const AudioToggle: React.FC<IAudioToggle> = ({ showLabel }) => {
const dispatch = useDispatch(); const dispatch = useDispatch();
const intl = useIntl(); const intl = useIntl();
@ -37,7 +33,6 @@ const AudioToggle: React.FC<IAudioToggle> = ({ showLabel }) => {
onChange={handleToggleAudio} onChange={handleToggleAudio}
// onKeyDown={this.onKeyDown} // onKeyDown={this.onKeyDown}
/> />
{showLabel && (<label htmlFor={id} className='setting-toggle__label'>{label}</label>)}
</div> </div>
</div> </div>
); );

View File

@ -50,7 +50,6 @@
@import 'components/wtf-panel'; @import 'components/wtf-panel';
@import 'components/profile-media-panel'; @import 'components/profile-media-panel';
@import 'components/profile-info-panel'; @import 'components/profile-info-panel';
@import 'components/setting-toggle';
@import 'components/spoiler-button'; @import 'components/spoiler-button';
@import 'components/video-player'; @import 'components/video-player';
@import 'components/audio-player'; @import 'components/audio-player';

View File

@ -1,3 +0,0 @@
.setting-toggle__label {
color: var(--gray-800);
}