| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 | import React from 'react';import { Trans } from '@/components/Common/Translate';import ContentWrapper from '@/components/Layout/ContentWrapper';import { Row, Col, Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';class SingleView extends React.Component {    state = {      dropdownOpen: false    }    changeLanguage = lng => {        this.props.changeLanguage(lng);    }    toggle = () => {        this.setState({            dropdownOpen: !this.state.dropdownOpen        });    }    render() {        return (            <ContentWrapper>                <div className="content-heading">                   <div>Single View                      <small><Trans i18nKey='dashboard.WELCOME'></Trans></small>                   </div>                    { /* START Language list */ }                    <div className="ml-auto">                        <Dropdown isOpen={this.state.dropdownOpen} toggle={this.toggle}>                            <DropdownToggle>                                English                            </DropdownToggle>                            <DropdownMenu className="dropdown-menu-right-forced animated fadeInUpShort">                                <DropdownItem onClick={() => this.changeLanguage('en')}>English</DropdownItem>                                <DropdownItem onClick={() => this.changeLanguage('es')}>Spanish</DropdownItem>                            </DropdownMenu>                        </Dropdown>                    </div>                    { /* END Language list */ }                </div>                <Row>                    <Col xs={12} className="text-center">                        <h2 className="text-thin">Single view content</h2>                        <p>                            This project is an application skeleton. You can use it to quickly bootstrap your ReactJS webapp projects and dev environment for these projects.                            <br/>                            The seed app doesn't do much and has most of the feature removed so you can add theme as per your needs just following the demo app examples.                        </p>                    </Col>                </Row>            </ContentWrapper>        );    }}export default SingleView;
 |