mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 14:22:33 +01:00
* chore: 🔧 change withApollo * feat: ✨ set cookie from server * chore: 🔧 remove bcrypt dep * fix: 🐛 initialize check * chore: 🔧 remove cookies correctly * fix: 🐛 status type
43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
import styled from 'styled-components';
|
|
import { GridWrapper } from 'src/components/gridWrapper/GridWrapper';
|
|
import { withApollo } from 'config/client';
|
|
import { SingleLine } from '../src/components/generic/Styled';
|
|
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';
|
|
import { ChatSettings } from '../src/views/settings/Chat';
|
|
import { PrivacySettings } from '../src/views/settings/Privacy';
|
|
|
|
export const ButtonRow = styled.div`
|
|
width: auto;
|
|
display: flex;
|
|
`;
|
|
|
|
export const SettingsLine = styled(SingleLine)`
|
|
margin: 8px 0;
|
|
`;
|
|
|
|
const SettingsView = () => {
|
|
return (
|
|
<>
|
|
<InterfaceSettings />
|
|
<PrivacySettings />
|
|
<ChatSettings />
|
|
<SyncSettings />
|
|
<CurrentSettings />
|
|
<AccountSettings />
|
|
<DangerView />
|
|
</>
|
|
);
|
|
};
|
|
|
|
const Wrapped = () => (
|
|
<GridWrapper>
|
|
<SettingsView />
|
|
</GridWrapper>
|
|
);
|
|
|
|
export default withApollo(Wrapped);
|