private renderComponent()

in src/DetailsView/components/issues-table.tsx [97:127]


    private renderComponent(): JSX.Element {
        const cardCount = this.getCardCount();
        if (!this.props.issuesEnabled && cardCount > 0) {
            this.props.deps.detailsViewActionMessageCreator.enableFastPassVisualHelperWithoutScan(
                this.props.visualizationStoreData.selectedFastPassDetailsView,
            );
        }
        if (!this.props.issuesEnabled && cardCount === 0) {
            this.props.deps.detailsViewActionMessageCreator.rescanVisualizationWithoutTelemetry(
                this.props.visualizationStoreData.selectedFastPassDetailsView,
            );
        }

        if (this.props.scanning) {
            return this.renderSpinner('Scanning...');
        }

        const InstancesSection = this.props.instancesSection;

        return (
            <InstancesSection
                deps={this.props.deps}
                cardsViewData={this.props.cardsViewData}
                userConfigurationStoreData={this.props.userConfigurationStoreData}
                scanMetadata={this.props.scanMetadata}
                shouldAlertFailuresCount={true}
                cardSelectionMessageCreator={this.props.cardSelectionMessageCreator}
                sectionHeadingLevel={2}
            />
        );
    }