1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-14 18:27:44 +02:00

Mobile: Remove empty sections from config screen

This commit is contained in:
Laurent Cozic 2019-09-16 22:59:45 +01:00
parent 224a4d786b
commit 52ace55db0

View File

@ -269,6 +269,8 @@ class ConfigScreenComponent extends BaseScreenComponent {
settingComps.push(this.renderButton('e2ee_config_button', _('Encryption Config'), this.e2eeConfig_));
}
if (!settingComps.length) return null;
return (
<View key={key}>
{this.renderHeader(section.name, Setting.sectionNameToLabel(section.name))}