diff --git a/package.json b/package.json
index 210df7a..51848b9 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,7 @@
{
"name": "ipfs-boards",
"version": "0.1.0",
+ "homepage": ".",
"private": true,
"dependencies": {
"ipfs": "^0.27.7",
diff --git a/src/components/Board.js b/src/components/Board.js
index daa8447..93b6579 100644
--- a/src/components/Board.js
+++ b/src/components/Board.js
@@ -1,5 +1,16 @@
import React from 'react'
+import PostEditor from '../containers/PostEditor'
+import Post from './Post'
+import { Segment } from 'semantic-ui-react'
-export default function Board({ id, address }) {
- return
{address}
+export default function Board({ id, posts }) {
+ return
+
{id}
+
+
+
+
+ {Object.keys(posts).map(i => )}
+
+
}
\ No newline at end of file
diff --git a/src/components/Boards.js b/src/components/Boards.js
index 8e60479..56cb125 100644
--- a/src/components/Boards.js
+++ b/src/components/Boards.js
@@ -5,7 +5,7 @@ import { Button } from 'semantic-ui-react'
export default function Boards({ boards, createBoard }) {
return
- {Object.values(boards).map(board => )}
+ {Object.values(boards).map(board => )}
}
\ No newline at end of file
diff --git a/src/components/BoardsItem.js b/src/components/BoardsItem.js
index 2ba2e9b..cb57f6a 100644
--- a/src/components/BoardsItem.js
+++ b/src/components/BoardsItem.js
@@ -1,8 +1,9 @@
import React from 'react'
import { List } from 'semantic-ui-react'
+import { Link } from 'react-router-dom'
-export default function BoardsItem({ title }) {
- return
+export default function BoardsItem({ id, title }) {
+ return
{title}
diff --git a/src/components/Feed.js b/src/components/Feed.js
deleted file mode 100644
index 15c2a79..0000000
--- a/src/components/Feed.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import React from 'react'
-import { PostEditor } from '../containers/PostEditor'
-import { Section } from 'react-semantic-ui'
-
-export default function Board({ posts }) {
- return
-
-
- {(posts || []).map(p => - {p}
)}
-
-
-}
\ No newline at end of file
diff --git a/src/components/Post.js b/src/components/Post.js
new file mode 100644
index 0000000..6ece7f7
--- /dev/null
+++ b/src/components/Post.js
@@ -0,0 +1,5 @@
+import React from 'react'
+
+export default function Post({ title, content }) {
+ return {title}: {content}
+}
\ No newline at end of file
diff --git a/src/reducers/boards.js b/src/reducers/boards.js
index 080d6cf..c89f5e5 100644
--- a/src/reducers/boards.js
+++ b/src/reducers/boards.js
@@ -11,7 +11,16 @@ export default function BoardsReducer(state = getInitialState(), action) {
switch (action.type) {
case CREATED_BOARD:
const id = getBoardIdFromAddress(action.board.address)
- const newBoards = Object.assign({}, state.boards.boards, { [id]: action.board })
+ const board = {
+ id,
+ posts: {
+ 1: {
+ title: 'Example Post',
+ content: 'no, this is not real'
+ }
+ }
+ }
+ const newBoards = Object.assign({}, state.boards.boards, { [id]: board })
return Object.assign({}, state, { boards: newBoards })
default:
return state;