mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 08:35:16 +08:00
Summary: Adds new redesigned preferences with horizontal tab bar and refactored code. Converts Preferences, Plugins, and a few components to ES6. Test Plan: Tested locally. Reviewers: evan, bengotow Reviewed By: bengotow Subscribers: juan Differential Revision: https://phab.nylas.com/D2818
52 lines
1.6 KiB
JavaScript
52 lines
1.6 KiB
JavaScript
import React from 'react';
|
|
|
|
import ConfigSchemaItem from './config-schema-item';
|
|
import WorkspaceSection from './workspace-section';
|
|
import SendingSection from './sending-section';
|
|
|
|
class PreferencesGeneral extends React.Component {
|
|
static displayName = 'PreferencesGeneral';
|
|
|
|
static propTypes = {
|
|
config: React.PropTypes.object,
|
|
configSchema: React.PropTypes.object,
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<div className="container-general" style={{maxWidth: 600}}>
|
|
|
|
<WorkspaceSection config={this.props.config} configSchema={this.props.configSchema} />
|
|
|
|
<ConfigSchemaItem
|
|
configSchema={this.props.configSchema.properties.notifications}
|
|
keyName="Notifications"
|
|
keyPath="core.notifications"
|
|
config={this.props.config} />
|
|
|
|
<div className="platform-note platform-linux-only">
|
|
N1 desktop notifications on Linux require Zenity. You may need to install
|
|
it with your package manager (i.e., <code>sudo apt-get install zenity</code>).
|
|
</div>
|
|
|
|
<ConfigSchemaItem
|
|
configSchema={this.props.configSchema.properties.reading}
|
|
keyName="Reading"
|
|
keyPath="core.reading"
|
|
config={this.props.config} />
|
|
|
|
<SendingSection config={this.props.config} configSchema={this.props.configSchema} />
|
|
|
|
<ConfigSchemaItem
|
|
configSchema={this.props.configSchema.properties.attachments}
|
|
keyName="Attachments"
|
|
keyPath="core.attachments"
|
|
config={this.props.config} />
|
|
|
|
</div>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
export default PreferencesGeneral;
|