2020-04-12 18:27:01 +02:00
|
|
|
import React from 'react';
|
|
|
|
import styled from 'styled-components';
|
2020-05-26 07:03:33 +02:00
|
|
|
import { GridWrapper } from 'src/components/gridWrapper/GridWrapper';
|
|
|
|
import { withApollo } from 'config/client';
|
2020-05-23 18:45:28 +02:00
|
|
|
import { SingleLine } from '../src/components/generic/Styled';
|
2020-04-12 18:27:01 +02:00
|
|
|
import { InterfaceSettings } from '../src/views/settings/Interface';
|
|
|
|
import { AccountSettings } from '../src/views/settings/Account';
|
|
|
|
import { DangerView } from '../src/views/settings/Danger';
|
|
|
|
import { CurrentSettings } from '../src/views/settings/Current';
|
|
|
|
import { SyncSettings } from '../src/views/settings/Sync';
|
2020-05-01 14:08:30 +02:00
|
|
|
import { ChatSettings } from '../src/views/settings/Chat';
|
2020-05-11 06:21:16 +02:00
|
|
|
import { PrivacySettings } from '../src/views/settings/Privacy';
|
2020-04-12 18:27:01 +02:00
|
|
|
|
|
|
|
export const ButtonRow = styled.div`
|
|
|
|
width: auto;
|
|
|
|
display: flex;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const SettingsLine = styled(SingleLine)`
|
|
|
|
margin: 8px 0;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const SettingsView = () => {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<InterfaceSettings />
|
2020-05-11 06:21:16 +02:00
|
|
|
<PrivacySettings />
|
2020-05-01 14:08:30 +02:00
|
|
|
<ChatSettings />
|
2020-04-12 18:27:01 +02:00
|
|
|
<SyncSettings />
|
|
|
|
<CurrentSettings />
|
|
|
|
<AccountSettings />
|
|
|
|
<DangerView />
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2020-05-26 07:03:33 +02:00
|
|
|
const Wrapped = () => (
|
2020-06-05 18:50:10 +02:00
|
|
|
<GridWrapper noNavigation={true}>
|
2020-05-26 07:03:33 +02:00
|
|
|
<SettingsView />
|
|
|
|
</GridWrapper>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default withApollo(Wrapped);
|