Authentication UI: Hide empty settings section (#67407)

This commit is contained in:
Alexander Zobnin
2023-04-28 08:58:01 +02:00
committed by GitHub
parent 1fbac96bd4
commit a1b9eb1eea
@@ -100,9 +100,9 @@ export const AuthConfigPageUnconnected = ({
))} ))}
</div> </div>
)} )}
<div className={styles.settingsSection}> {!isEmpty(authSettings) && (
<h3>Settings</h3> <div className={styles.settingsSection}>
{authSettings && ( <h3>Settings</h3>
<table className="filter-table"> <table className="filter-table">
<tbody> <tbody>
{Object.entries(authSettings).map(([sectionName, sectionSettings], i) => ( {Object.entries(authSettings).map(([sectionName, sectionSettings], i) => (
@@ -121,8 +121,8 @@ export const AuthConfigPageUnconnected = ({
))} ))}
</tbody> </tbody>
</table> </table>
)} </div>
</div> )}
</Page.Contents> </Page.Contents>
</Page> </Page>
); );