-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove legacy update notification system
- Loading branch information
Showing
10 changed files
with
8 additions
and
220 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,30 +1,16 @@ | ||
import React from 'react' | ||
import { UPDATE_NOTIFICATION_TYPES } from '../../shared/settings' | ||
import ListSubheader from '../components/list-subheader' | ||
import ListItemSwitch from '../components/list-item-switch' | ||
import ListItemMenu from '../components/list-item-menu' | ||
|
||
const UPDATE_NOTIFICATION_TYPES_MAP = { | ||
tab: 'Open changelog in a new unfocused tab automatically', | ||
badge: 'Show a badge on the extension icon and open changelog by myself', | ||
disabled: 'Disabled' | ||
} | ||
|
||
export const GENERAL = 'General' | ||
|
||
export default ({ getSwitchProps, getMenuProps }) => ( | ||
export default ({ getSwitchProps }) => ( | ||
<React.Fragment> | ||
<ListSubheader>Extension</ListSubheader> | ||
<ListItemSwitch | ||
primary="Enabled" | ||
secondary="FACEIT will be enhanced." | ||
{...getSwitchProps('extensionEnabled')} | ||
/> | ||
<ListItemMenu | ||
primary="Update Notification" | ||
options={UPDATE_NOTIFICATION_TYPES} | ||
mapOption={option => UPDATE_NOTIFICATION_TYPES_MAP[option]} | ||
{...getMenuProps('updateNotificationType')} | ||
/> | ||
</React.Fragment> | ||
) |
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