Merge pull request #1230 from gabrielsroka/patch-2

Update IDEView.jsx
This commit is contained in:
Cassie Tarakajian 2020-01-09 13:09:17 -05:00 committed by GitHub
commit b8d47c60b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,6 +191,7 @@ class IDEView extends React.Component {
<Toolbar /> <Toolbar />
{this.props.ide.preferencesIsVisible && {this.props.ide.preferencesIsVisible &&
<Overlay <Overlay
title="Settings"
ariaLabel="settings" ariaLabel="settings"
closeOverlay={this.props.closePreferences} closeOverlay={this.props.closePreferences}
> >
@ -389,6 +390,7 @@ class IDEView extends React.Component {
} }
{ this.props.location.pathname === '/about' && { this.props.location.pathname === '/about' &&
<Overlay <Overlay
title="About"
previousPath={this.props.ide.previousPath} previousPath={this.props.ide.previousPath}
ariaLabel="about" ariaLabel="about"
> >
@ -397,6 +399,7 @@ class IDEView extends React.Component {
} }
{ this.props.location.pathname === '/feedback' && { this.props.location.pathname === '/feedback' &&
<Overlay <Overlay
title="Submit Feedback"
previousPath={this.props.ide.previousPath} previousPath={this.props.ide.previousPath}
ariaLabel="submit-feedback" ariaLabel="submit-feedback"
> >
@ -405,6 +408,7 @@ class IDEView extends React.Component {
} }
{ this.props.ide.shareModalVisible && { this.props.ide.shareModalVisible &&
<Overlay <Overlay
title="Share"
ariaLabel="share" ariaLabel="share"
closeOverlay={this.props.closeShareModal} closeOverlay={this.props.closeShareModal}
> >
@ -417,6 +421,7 @@ class IDEView extends React.Component {
} }
{ this.props.ide.keyboardShortcutVisible && { this.props.ide.keyboardShortcutVisible &&
<Overlay <Overlay
title="Keyboard Shortcuts"
ariaLabel="keyboard shortcuts" ariaLabel="keyboard shortcuts"
closeOverlay={this.props.closeKeyboardShortcutModal} closeOverlay={this.props.closeKeyboardShortcutModal}
> >
@ -425,6 +430,7 @@ class IDEView extends React.Component {
} }
{ this.props.ide.errorType && { this.props.ide.errorType &&
<Overlay <Overlay
title="Error"
ariaLabel="error" ariaLabel="error"
closeOverlay={this.props.hideErrorModal} closeOverlay={this.props.hideErrorModal}
> >