-
-
Notifications
You must be signed in to change notification settings - Fork 380
/
Copy pathsettings-container.tsx
56 lines (51 loc) · 1.53 KB
/
settings-container.tsx
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
47
48
49
50
51
52
53
54
55
56
import { TextFieldProps } from '@material-ui/core'
import { FC } from 'react'
import { DailyNotes } from './daily-notes'
import { Language } from './language'
import { Theme } from './theme'
import { EditorWidth } from './editor-width'
import { ImportOrExport } from './import-or-export'
import { SnippetInjection } from './snippet-injection'
import useI18n from 'libs/web/hooks/use-i18n'
import { SettingsHeader } from './settings-header'
import { ExplicitSave } from './explicit-save'
export const defaultFieldConfig: TextFieldProps = {
fullWidth: true,
margin: 'normal',
size: 'small',
variant: 'outlined',
InputLabelProps: {
shrink: true,
},
classes: {
root: 'text-lg',
},
}
const HR = () => {
return <hr className="my-10 border-gray-200" />
}
export const SettingsContainer: FC = () => {
const { t } = useI18n()
return (
<section>
<SettingsHeader id="basic" title={t('Basic')}></SettingsHeader>
<DailyNotes></DailyNotes>
<Language></Language>
<Theme></Theme>
<EditorWidth></EditorWidth>
<ExplicitSave></ExplicitSave>
<HR />
<SettingsHeader
id="import-and-export"
title={t('Import & Export')}
description={t(
'Import a zip file containing markdown files to this location, or export all pages from this location.'
)}
></SettingsHeader>
<ImportOrExport></ImportOrExport>
<HR />
<SettingsHeader id="sharing" title={t('Sharing')}></SettingsHeader>
<SnippetInjection></SnippetInjection>
</section>
)
}