removed old Items folder
This commit is contained in:
parent
b2f69714b8
commit
b21d6695a7
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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'
|
|
Loading…
x
Reference in New Issue
Block a user