Created
February 16, 2020 22:44
-
-
Save p3nGu1nZz/eddcace43017068dc5b7f113774e83d3 to your computer and use it in GitHub Desktop.
238147608927343
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import { Icon, Input, Menu, Segment } from "semantic-ui-react"; | |
/** | |
* This class is used to render the active circuit feed in the console view | |
*/ | |
export default class ActiveCircuitFeed extends Component { | |
/** | |
* builds the active circuit chat component for the circuit feed | |
* @param props | |
*/ | |
constructor(props) { | |
super(props); | |
} | |
handleClick = (e, { name }) => { | |
console.log("clicked on -> " + name); | |
}; | |
/** | |
* renders the active circuit chat panel for the feed | |
* @returns {*} | |
*/ | |
render() { | |
return ( | |
<div id="component" className="activeCircuitChat"> | |
<Segment inverted> | |
<Menu | |
inverted | |
icon | |
compact | |
borderless | |
fluid | |
> | |
<Menu.Item | |
name='gamepad' | |
onClick={this.handleClick} | |
> | |
<Icon name='gamepad' /> | |
</Menu.Item> | |
<Menu.Item | |
name='video camera' | |
onClick={this.handleClick} | |
> | |
<Icon name='video camera' /> | |
</Menu.Item> | |
<Menu.Item | |
name='video play' | |
onClick={this.handleClick} | |
> | |
<Icon name='video play' /> | |
</Menu.Item> | |
</Menu> | |
<div>formated text</div> | |
<Input transparent placeholder='Search...' /> | |
</Segment> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment