Cleans up code
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import MailPoet from 'mailpoet';
|
import MailPoet from 'mailpoet';
|
||||||
import _ from 'underscore';
|
import _ from 'underscore';
|
||||||
|
|
||||||
import Tabs from './tabs.jsx';
|
import Tabs from './tabs.jsx';
|
||||||
|
|
||||||
function handleFocus(event) {
|
function handleFocus(event) {
|
||||||
@ -27,20 +26,20 @@ function printData(data) {
|
|||||||
return (<p>{MailPoet.I18n.t('systemInfoDataError')}</p>);
|
return (<p>{MailPoet.I18n.t('systemInfoDataError')}</p>);
|
||||||
}
|
}
|
||||||
|
|
||||||
function KnowledgeBase() {
|
function SystemInfo() {
|
||||||
const data = window.help_scout_data;
|
const systemInfoData = window.systemInfoData;
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<Tabs tab="systemInfo" />
|
<Tabs tab="systemInfo" />
|
||||||
|
|
||||||
<div className="mailpoet_notice notice inline notice-success" style={{ marginTop: '1em' }}>
|
<div className="mailpoet_notice notice inline" style={{ marginTop: '1em' }}>
|
||||||
<p>{MailPoet.I18n.t('systemInfoIntro')}</p>
|
<p>{MailPoet.I18n.t('systemInfoIntro')}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{printData(data)}
|
{printData(systemInfoData)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = KnowledgeBase;
|
module.exports = SystemInfo;
|
||||||
|
Reference in New Issue
Block a user