Untitled
unknown
plain_text
a year ago
2.4 kB
4
Indexable
Never
return isLoading ? ( <Loader /> ) : ( <div className="dashboard-container"> <ClickOutside onClickOutside={() => { setExpanded(false); }} > <StyledSideNav expanded={expanded} onToggle={(expanded) => { setExpanded(expanded); }} > <SideNav.Toggle /> <SideNav.Nav defaultSelected="home"> <NavItem eventKey="home" onClick={() => { handlePageChange("home"); }} > <NavIcon> <i className="fa fa-fw fa-home" style={{ fontSize: "1.75em" }} /> </NavIcon> <NavText>Home</NavText> </NavItem> <NavItem eventKey="charts" onClick={() => { handlePageChange("charts"); }} > <NavIcon> <i className="fa fa-fw fa-line-chart" style={{ fontSize: "1.75em" }} /> </NavIcon> <NavText>Charts</NavText> </NavItem> <NavItem eventKey="contact" onClick={() => { handlePageChange("contact"); }} > <NavIcon> <i className="fa fa-fw fa-envelope" style={{ fontSize: "1.75em" }} /> </NavIcon> <NavText>Contact us</NavText> </NavItem> <NavItem eventKey="settings" onClick={() => { handlePageChange("settings"); }} > <NavIcon> <i className="fa fa-fw fa-cog" style={{ fontSize: "1.75em" }} /> </NavIcon> <NavText>Settings</NavText> </NavItem> </SideNav.Nav> </StyledSideNav> </ClickOutside> <section className={`section ${expanded ? "pushed" : ""}`}> <section className="section-content"> <h1>Article Dashboard</h1> {renderPageContent()} </section> </section> </div> ); };