diff --git a/src/App.tsx b/src/App.tsx index a992516..beb7e21 100755 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,16 +1,21 @@ import React, { Component } from 'react'; -import Channels from './components/channels/Channels'; import Header from './components/Header/Header'; import './App.css'; class App extends Component { public render() { + const channel: Channel = { + id: 1, + name: 'test', + totalClients: -1, + neededSubscribePower: 0, + subchannels: [], + }; return (
-
); } diff --git a/src/components/channels/ChannelView.css b/src/components/channels/ChannelView.css new file mode 100644 index 0000000..9e43fba --- /dev/null +++ b/src/components/channels/ChannelView.css @@ -0,0 +1,10 @@ +.channel-view { + background-color: green; + width: 20%; + height: auto; + margin: auto; +} + +.channel-view ul { + text-align: left +} diff --git a/src/components/channels/ChannelView.tsx b/src/components/channels/ChannelView.tsx new file mode 100644 index 0000000..d9d52e6 --- /dev/null +++ b/src/components/channels/ChannelView.tsx @@ -0,0 +1,29 @@ +import React, { Component } from 'react'; +import './ChannelView.css'; + +export default class ChannelView extends Component { + render() { + const { channel } = this.props; + return ( +
+

{channel.name}

+ +
+ ); + } +}