Add back button to keyboard shortcuts legend column (#5872)

master
Lynx Kotoura 7 years ago committed by Eugen Rochko
parent ac17309faf
commit 62a94ebed4
  1. 4
      app/javascript/mastodon/features/keyboard_shortcuts/index.js

@ -1,5 +1,6 @@
import React from 'react'; import React from 'react';
import Column from '../ui/components/column'; import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePureComponent from 'react-immutable-pure-component';
@ -20,7 +21,8 @@ export default class KeyboardShortcuts extends ImmutablePureComponent {
const { intl } = this.props; const { intl } = this.props;
return ( return (
<Column icon='question' heading={intl.formatMessage(messages.heading)} hideHeadingOnMobile> <Column icon='question' heading={intl.formatMessage(messages.heading)}>
<ColumnBackButtonSlim />
<div className='keyboard-shortcuts scrollable optionally-scrollable'> <div className='keyboard-shortcuts scrollable optionally-scrollable'>
<table> <table>
<thead> <thead>

Loading…
Cancel
Save