2018-01-13 02:01:27 +00:00
|
|
|
import React, { Component } from 'react';
|
2021-04-24 23:23:42 +00:00
|
|
|
import { DndProvider } from 'react-dnd-multi-backend';
|
|
|
|
import HTML5toTouch from 'react-dnd-multi-backend/dist/esm/HTML5toTouch';
|
2018-01-13 02:01:27 +00:00
|
|
|
import PageContent from 'Components/Page/PageContent';
|
2020-04-25 18:59:29 +00:00
|
|
|
import PageContentBody from 'Components/Page/PageContentBody';
|
2018-01-13 02:01:27 +00:00
|
|
|
import SettingsToolbarConnector from 'Settings/SettingsToolbarConnector';
|
|
|
|
import DelayProfilesConnector from './Delay/DelayProfilesConnector';
|
2022-05-20 04:15:43 +00:00
|
|
|
import QualityProfilesConnector from './Quality/QualityProfilesConnector';
|
2018-01-13 02:01:27 +00:00
|
|
|
import ReleaseProfilesConnector from './Release/ReleaseProfilesConnector';
|
|
|
|
|
2019-07-17 02:23:50 +00:00
|
|
|
// Only a single DragDrop Context can exist so it's done here to allow editing
|
|
|
|
// quality profiles and reordering delay profiles to work.
|
|
|
|
|
2018-01-13 02:01:27 +00:00
|
|
|
class Profiles extends Component {
|
|
|
|
|
|
|
|
//
|
|
|
|
// Render
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<PageContent title="Profiles">
|
2021-04-24 23:23:42 +00:00
|
|
|
<SettingsToolbarConnector showSave={false} />
|
2018-01-13 02:01:27 +00:00
|
|
|
|
2020-04-25 18:59:29 +00:00
|
|
|
<PageContentBody>
|
2021-04-24 23:23:42 +00:00
|
|
|
<DndProvider options={HTML5toTouch}>
|
2019-07-17 02:23:50 +00:00
|
|
|
<QualityProfilesConnector />
|
|
|
|
<DelayProfilesConnector />
|
|
|
|
<ReleaseProfilesConnector />
|
|
|
|
</DndProvider>
|
2020-04-25 18:59:29 +00:00
|
|
|
</PageContentBody>
|
2018-01-13 02:01:27 +00:00
|
|
|
</PageContent>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-17 02:23:50 +00:00
|
|
|
export default Profiles;
|