removed old Items folder

This commit is contained in:
notnull 2019-03-23 13:19:21 -04:00
parent b2f69714b8
commit b21d6695a7
5 changed files with 0 additions and 87 deletions

View File

@ -1,31 +0,0 @@
import React from 'react'
import ItemList from './ItemList'
import Table from 'react-bootstrap/Table'
const Captions = props => {
const { captions } = props
return (
<Table striped bordered hover>
<thead>
<tr>
<th>TimeStamp</th>
<th>Nick</th>
<th>Message</th>
</tr>
</thead>
<tbody>
{captions.map(caption => {
return (
<tr>
<td>caption.timestamp</td>
<td>caption.nick</td>
<td>caption.message[0]</td>
</tr>
)
})}
</tbody>
</Table>
)
}
export default Captions

View File

@ -1,15 +0,0 @@
import React from 'react'
import ItemRow from './ItemRow'
const ItemList = props => {
const { items, fetchEpisodeComments } = props
//console.log(items)
return (
<tbody>
{items.map(item => (
<ItemRow fetchEpisodeComments={fetchEpisodeComments} key={item.slug} {...item} />
))}
</tbody>
)
}
export default ItemList

View File

@ -1,16 +0,0 @@
import React from 'react'
const ItemRow = props => {
const { fetchEpisodeComments, item } = props
return (
<tr>
<td>
<a onClick={fetchEpisodeComments} href={`/episode/${item.slug}`}>
{item.title}
</a>
</td>
</tr>
)
}
export default ItemRow

View File

@ -1,21 +0,0 @@
import React from 'react'
import ItemList from './ItemList'
import Table from 'react-bootstrap/Table'
const Items = props => {
const { items, fetchEpisodeComments } = props
console.log(props)
return <div />
// return (
// <Table striped bordered hover>
// <thead>
// <tr>
// <th>Episodes</th>
// </tr>
// </thead>
// <ItemList fetchEpisodeComments={fetchEpisodeComments} items={items} />
// </Table>
// )
}
export default Items

View File

@ -1,4 +0,0 @@
export { default as Items } from './Items'
export { default as ItemList } from './ItemList'
export { default as ItemRow } from './ItemRow'
export { default as Captions } from './Captions'