MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-

View on GitHub
src/renderer/ui/components/settings/tabs/HotkeyTab.js

Summary

Maintainability
A
0 mins
Test Coverage
import React, { Component } from 'react';

import SettingsTabWrapper from './SettingsTabWrapper';

import HotkeyInput from '../HotkeyInput';

export default class HotkeyTab extends Component {
  render() {
    return (
      <SettingsTabWrapper>
        <HotkeyInput label={TranslationProvider.query('playback-label-play-pause')} hotkeyAction="playPause" />
        <HotkeyInput label={TranslationProvider.query('playback-label-stop')} hotkeyAction="stop" />
        <HotkeyInput label={TranslationProvider.query('playback-label-previous-track')} hotkeyAction="previousTrack" />
        <HotkeyInput label={TranslationProvider.query('playback-label-next-track')} hotkeyAction="nextTrack" />
        <HotkeyInput label={TranslationProvider.query('playback-label-toggle-repeat')} hotkeyAction="toggleRepeat" />
        <HotkeyInput label={TranslationProvider.query('playback-label-thumbs-up')} hotkeyAction="thumbsUp" />
        <HotkeyInput label={TranslationProvider.query('playback-label-thumbs-down')} hotkeyAction="thumbsDown" />
        <HotkeyInput label={TranslationProvider.query('playback-label-volume-down')} hotkeyAction="decreaseVolume" />
        <HotkeyInput label={TranslationProvider.query('playback-label-volume-up')} hotkeyAction="increaseVolume" />
        <HotkeyInput label={TranslationProvider.query('playback-label-info-track')} hotkeyAction="infoTrack" />
        <HotkeyInput label={TranslationProvider.query('playback-label-im-feeling-lucky')} hotkeyAction="imFeelingLucky" />
        <HotkeyInput label={TranslationProvider.query('label-show-lyrics')} hotkeyAction="showLyrics" />
      </SettingsTabWrapper>
    );
  }
}