* Ok 1 * Finished * Fix PR * Fix PR * Fix desktop * Fix * Fix absolute listen click outside * console.log * Fix according to code review --------- Co-authored-by: Charles Bochet <charles@twenty.com>
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import styled from '@emotion/styled';
|
|
|
|
import { ColorSchemePicker } from '@/ui/color-scheme/components/ColorSchemePicker';
|
|
import { SubMenuTopBarContainer } from '@/ui/layout/components/SubMenuTopBarContainer';
|
|
import { useColorScheme } from '@/ui/themes/hooks/useColorScheme';
|
|
import { MainSectionTitle } from '@/ui/title/components/MainSectionTitle';
|
|
import { SubSectionTitle } from '@/ui/title/components/SubSectionTitle';
|
|
|
|
const StyledContainer = styled.div`
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: ${({ theme }) => theme.spacing(8)};
|
|
padding-bottom: ${({ theme }) => theme.spacing(10)};
|
|
width: 350px;
|
|
> * + * {
|
|
margin-top: ${({ theme }) => theme.spacing(8)};
|
|
}
|
|
`;
|
|
|
|
const StyledSectionContainer = styled.div`
|
|
> * + * {
|
|
margin-top: ${({ theme }) => theme.spacing(4)};
|
|
}
|
|
`;
|
|
|
|
export function SettingsExperience() {
|
|
const { colorScheme, setColorScheme } = useColorScheme();
|
|
|
|
return (
|
|
<SubMenuTopBarContainer>
|
|
<div>
|
|
<StyledContainer>
|
|
<MainSectionTitle>Experience</MainSectionTitle>
|
|
<StyledSectionContainer>
|
|
<SubSectionTitle title="Appearance" />
|
|
<ColorSchemePicker value={colorScheme} onChange={setColorScheme} />
|
|
</StyledSectionContainer>
|
|
</StyledContainer>
|
|
</div>
|
|
</SubMenuTopBarContainer>
|
|
);
|
|
}
|