Blame view

imports/client/components/Icon.js 546 Bytes
ff976df49   Deepak   added orgs public...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  import React, { Component } from 'react';
  
  export class Icon extends Component {
    render() {
      if(this.props.fa)
        return <i className = {"icon icon-fa icon-fa-" + this.props.fa}></i>
      if(this.props.ion)
        return <i className = {"icon icon-ion icon-ion-" + this.props.ion}></i>
      if(this.props.material)
        return <i className = {"icon icon-material icon-material-" + this.props.material}></i>
      if(this.props.simple)
        return <i className = {"icon icon-simple icon-" + this.props.simple}></i>
      return <i></i>
    };
  };