* Change to using arrow functions Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Matheus <matheus_benini@hotmail.com> * Add lint rule --------- Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Matheus <matheus_benini@hotmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
import styled from '@emotion/styled';
|
|
|
|
import { DeleteWorkspace } from '@/settings/profile/components/DeleteWorkspace';
|
|
import { NameField } from '@/settings/workspace/components/NameField';
|
|
import { WorkspaceLogoUploader } from '@/settings/workspace/components/WorkspaceLogoUploader';
|
|
import { IconSettings } from '@/ui/icon';
|
|
import { SubMenuTopBarContainer } from '@/ui/layout/components/SubMenuTopBarContainer';
|
|
import { Section } from '@/ui/section/components/Section';
|
|
import { H1Title } from '@/ui/typography/components/H1Title';
|
|
import { H2Title } from '@/ui/typography/components/H2Title';
|
|
|
|
const StyledContainer = styled.div`
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: ${({ theme }) => theme.spacing(8)};
|
|
width: 350px;
|
|
`;
|
|
|
|
export const SettingsWorkspace = () => (
|
|
<SubMenuTopBarContainer Icon={IconSettings} title="Settings">
|
|
<div>
|
|
<StyledContainer>
|
|
<H1Title title="General" />
|
|
<Section>
|
|
<H2Title title="Picture" />
|
|
<WorkspaceLogoUploader />
|
|
</Section>
|
|
<Section>
|
|
<H2Title title="Name" description="Name of your workspace" />
|
|
<NameField />
|
|
</Section>
|
|
|
|
<Section>
|
|
<DeleteWorkspace />
|
|
</Section>
|
|
</StyledContainer>
|
|
</div>
|
|
</SubMenuTopBarContainer>
|
|
);
|