forked from scratchfoundation/scratch-gui
-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add desktop settings button in settings menu
- Loading branch information
1 parent
3a57c98
commit aa40746
Showing
5 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import {FormattedMessage} from 'react-intl'; | ||
import {MenuItem} from '../menu/menu.jsx'; | ||
import icon from './tw-desktop-icon.svg'; | ||
import styles from './settings-menu.css'; | ||
|
||
const TWDesktopSettings = props => ( | ||
<MenuItem onClick={props.onClick}> | ||
<div className={styles.option}> | ||
<img | ||
src={icon} | ||
draggable={false} | ||
width={24} | ||
height={24} | ||
alt="" | ||
/> | ||
<FormattedMessage | ||
defaultMessage="Desktop Settings" | ||
description="Button in menu bar under settings to open desktop app settings" | ||
id="tw.menuBar.desktopSettings" | ||
/> | ||
</div> | ||
</MenuItem> | ||
); | ||
|
||
TWDesktopSettings.propTypes = { | ||
onClick: PropTypes.func | ||
}; | ||
|
||
export default TWDesktopSettings; |