refactor
This commit is contained in:
@@ -71,7 +71,7 @@ const SettingsModal: React.FC<SettingsModalProps> = ({
|
||||
if (activeSectionConfig.component) {
|
||||
const SectionComponent = activeSectionConfig.component;
|
||||
sectionContent = <SectionComponent {...sectionProps} />;
|
||||
} else if (typeof activeSectionConfig.render === 'function') {
|
||||
} else if (activeSectionConfig.render) {
|
||||
sectionContent = activeSectionConfig.render(sectionProps);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user