Lidarr/frontend/src/Settings/Profiles/Profiles.js

40 lines
1.3 KiB
JavaScript
Raw Normal View History

2017-09-04 02:20:56 +00:00
import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import PageContent from 'Components/Page/PageContent';
import PageContentBodyConnector from 'Components/Page/PageContentBodyConnector';
import SettingsToolbarConnector from 'Settings/SettingsToolbarConnector';
import QualityProfilesConnector from './Quality/QualityProfilesConnector';
import LanguageProfilesConnector from './Language/LanguageProfilesConnector';
import MetadataProfilesConnector from './Metadata/MetadataProfilesConnector';
2017-09-04 02:20:56 +00:00
import DelayProfilesConnector from './Delay/DelayProfilesConnector';
class Profiles extends Component {
//
// Render
render() {
return (
<PageContent title="Profiles">
<SettingsToolbarConnector
showSave={false}
/>
<PageContentBodyConnector>
<QualityProfilesConnector />
<LanguageProfilesConnector />
<MetadataProfilesConnector />
2017-09-04 02:20:56 +00:00
<DelayProfilesConnector />
</PageContentBodyConnector>
</PageContent>
);
}
}
// Only a single DragDropContext can exist so it's done here to allow editing
// quality profiles and reordering delay profiles to work.
/* eslint-disable new-cap */
2017-09-04 02:20:56 +00:00
export default DragDropContext(HTML5Backend)(Profiles);
/* eslint-enable new-cap */