render()

in TailwindTraders.Website/Source/Tailwind.Traders.Web/ClientApp/src/shared/debugHeader/debugHeader.js [18:47]


    render() {
        const debugInfo = this.state.debugInfo;
        const spans = [];

        if (debugInfo.customText) {
            spans.push(<span style={{ "margin": "0px 20px" }}><strong>{debugInfo.customText}</strong></span>)
        }
        
        if (debugInfo.sqlServerName) {
            spans.push(<span style={{ "margin": "0px 20px" }}>SQL Server: <strong>{debugInfo.sqlServerName}</strong></span>)
        }
        if (debugInfo.mongoServerName) {
            spans.push(<span style={{ "margin": "0px 20px" }}>Mongo Server: <strong>{debugInfo.mongoServerName}</strong></span>)
        }

        if (this.state.debugInfo.showDebug) {
            return (
                <debug-header style={{
                    "display": "block", 
                    "padding": "6px 0px", 
                    "text-align": "center",
                    "background-color": "rgb(227, 232, 236)"
                }}>
                    { spans }
                </debug-header>
            );
        } else {
            return <div></div>;
        }
    }