1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-20 13:11:44 +00:00

Add preferences plugins wakatime key #2810

This commit is contained in:
Luis Reinoso
2019-03-12 22:05:30 -05:00
parent 57705cf41b
commit 39a98e795f
4 changed files with 166 additions and 11 deletions

View File

@@ -7,6 +7,7 @@ import InfoTab from './InfoTab'
import Crowdfunding from './Crowdfunding'
import StoragesTab from './StoragesTab'
import SnippetTab from './SnippetTab'
import PluginsTab from './PluginsTab'
import Blog from './Blog'
import ModalEscButton from 'browser/components/ModalEscButton'
import CSSModules from 'browser/lib/CSSModules'
@@ -95,6 +96,14 @@ class Preferences extends React.Component {
data={data}
/>
)
case 'PLUGINS':
return (
<PluginsTab
dispatch={dispatch}
config={config}
haveToSave={alert => this.setState({PluginsAlert: alert})}
/>
)
case 'STORAGES':
default:
return (
@@ -133,7 +142,8 @@ class Preferences extends React.Component {
{target: 'INFO', label: i18n.__('About')},
{target: 'CROWDFUNDING', label: i18n.__('Crowdfunding')},
{target: 'BLOG', label: i18n.__('Blog'), Blog: this.state.BlogAlert},
{target: 'SNIPPET', label: i18n.__('Snippets')}
{target: 'SNIPPET', label: i18n.__('Snippets')},
{target: 'PLUGINS', label: i18n.__('Plugins')}
]
const navButtons = tabs.map((tab) => {