plainblack/Lacuna-Web-Client

View on GitHub
app/js/components/window/essentia/boostsTab.jsx

Summary

Maintainability
D
2 days
Test Coverage
'use strict';

var React                   = require('react');

var Boost                   = require('js/components/window/essentia/boost');

var BoostsTab = React.createClass({
    
    render : function() {
        return (
            <div className="ui grid">

                <div className="centered row">
                    <div className="ui large green labels">
                        <div className="ui label">
                            Essentia
                            <div className="detail">
                                {this.props.exactEssentia}
                            </div>
                        </div>
                        <div className="ui label">
                            Boost Cost
                            <div className="detail">
                                5 Essentia
                            </div>
                        </div>
                    </div>
                </div>

                <div className="ui centered row">
                    <div className="eight wide column">
                        <Boost
                            type="food"
                            description="+25% Food / hr"
                            iconName="food"
                            boosts={this.props.boosts}
                            essentia={this.props.essentia}
                        />
                        <Boost
                            type="water"
                            description="+25% Water / hr"
                            iconName="theme"
                            boosts={this.props.boosts}
                            essentia={this.props.essentia}
                        />
                        <Boost
                            type="happiness"
                            description="+25% Happiness / hr"
                            iconName="smile"
                            boosts={this.props.boosts}
                            essentia={this.props.essentia}
                        />
                        <Boost
                            type="building"
                            description="+25% Building Construction Speed"
                            iconName="building outline"
                            boosts={this.props.boosts}
                            essentia={this.props.essentia}
                        />
                    </div>

                    <div className="eight wide column">
                        <Boost
                            type="ore"
                            description="+25% Ore / hr"
                            iconName="diamond"
                            boosts={this.props.boosts}
                            essentia={this.props.essentia}
                        />
                        <Boost
                            type="energy"
                            description="+25% Energy / hr"
                            iconName="lightning"
                            boosts={this.props.boosts}
                            essentia={this.props.essentia}
                        />
                        <Boost
                            type="storage"
                            description="+25% Storage"
                            iconName="archive"
                            boosts={this.props.boosts}
                            essentia={this.props.essentia}
                        />
                        <Boost
                            type="spy_training"
                            description="+50% Spy Training Speed"
                            iconName="protect"
                            boosts={this.props.boosts}
                            essentia={this.props.essentia}
                        />
                    </div>
                </div>
            </div>
        );
    }
});

module.exports = BoostsTab;