-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsettings.tsx
More file actions
46 lines (43 loc) · 1.34 KB
/
settings.tsx
File metadata and controls
46 lines (43 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import styled from "@emotion/styled";
import * as React from "react";
import { NonGrowingFlexContainer } from "../base/flex";
import { Heading } from "../base/headings";
import { ApplicationSettings } from "../settings/application/application-settings";
import { EmailSettings } from "../settings/mail-settings/email-settings";
import { FrontendSettings } from "../settings/appearance/frontend-settings";
import { ProjectProjectSettings } from "../settings/project-rating/rating-criteria-settings";
import { SettingsSaveButton } from "../settings/save-button";
import { Page } from "./page";
import { SimpleCard } from "../base/simple-card";
const HeaderContainer = styled(NonGrowingFlexContainer)`
justify-content: space-between;
flex-direction: row;
`;
const ButtonContainer = styled(NonGrowingFlexContainer)`
flex-basis: 0;
`;
/**
* A settings dashboard to configure all parts of tilt.
*/
export const Settings = () => (
<Page>
<HeaderContainer>
<Heading text="Settings" />
<ButtonContainer>
<SettingsSaveButton />
</ButtonContainer>
</HeaderContainer>
<SimpleCard>
<FrontendSettings />
</SimpleCard>
<SimpleCard>
<ApplicationSettings />
</SimpleCard>
<SimpleCard>
<EmailSettings />
</SimpleCard>
<SimpleCard>
<ProjectProjectSettings />
</SimpleCard>
</Page>
);