refactor: move toggle comments

This commit is contained in:
EnixCoda 2021-06-02 10:15:40 +08:00
parent e1495fef45
commit f7b3f3a7b2
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
2 changed files with 7 additions and 8 deletions

View file

@ -76,6 +76,13 @@ export function FileTreeSettings(props: React.PropsWithChildren<Props>) {
tooltip: 'Merge folders and their only child folder to make UI more compact.',
}}
/>
<SimpleToggleField
field={{
key: 'commentToggle',
label: 'Show PR file comments',
tooltip: 'Show number of comments next to file names in Pull Requests.',
}}
/>
</SettingsSection>
)
}

View file

@ -107,14 +107,6 @@ export function SidebarSettings(props: React.PropsWithChildren<Props>) {
},
}}
/>
<SimpleToggleField
field={{
key: 'commentToggle',
label: 'Toggle comments',
tooltip:
'Show number of comments next to file names.',
}}
/>
</SettingsSection>
)
}