fix: hide preferences section if empty (#482)

This commit is contained in:
Louis 2023-10-27 14:43:43 +07:00 committed by GitHub
parent 8dec75f9f0
commit 0a1b8778c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,9 +126,11 @@ const SettingsScreen = () => {
</div>
<div className="mt-5 flex-shrink-0">
<label className="font-bold uppercase text-gray-500">
Core plugins
</label>
{preferencePlugins.length > 0 && (
<label className="font-bold uppercase text-gray-500">
Core plugins
</label>
)}
<div className="mt-1 font-semibold">
{preferencePlugins.map((menu, i) => {
const isActive = activePreferencePlugin === menu