diff --git a/src/actions/actionTypes.js b/src/actions/actionTypes.js
index 0202029..1170cd2 100644
--- a/src/actions/actionTypes.js
+++ b/src/actions/actionTypes.js
@@ -4,6 +4,7 @@ export const UPDATE_BOARD_METADATA = 'UPDATE_BOARD_METADATA'
export const OPEN_BOARD = 'OPEN_BOARD'
export const OPENED_BOARD = 'OPENED_BOARD'
+export const CLOSE_BOARD = 'CLOSE_BOARD'
export const UPDATE_BOARD = 'UPDATE_BOARD'
diff --git a/src/actions/board.js b/src/actions/board.js
index 2859142..74102df 100644
--- a/src/actions/board.js
+++ b/src/actions/board.js
@@ -1,5 +1,6 @@
import {
OPEN_BOARD,
+ CLOSE_BOARD,
OPENED_BOARD,
UPDATE_BOARD_METADATA
} from './actionTypes'
@@ -24,4 +25,11 @@ export function updateBoardMetadata(address, metadata) {
address,
metadata
}
+}
+
+export function closeBoard(address) {
+ return {
+ type: CLOSE_BOARD,
+ address
+ }
}
\ No newline at end of file
diff --git a/src/components/BoardEditorForm.js b/src/components/BoardEditorForm.js
index e9c30a0..a5add3b 100644
--- a/src/components/BoardEditorForm.js
+++ b/src/components/BoardEditorForm.js
@@ -37,7 +37,7 @@ export default class BoardEditorForm extends Component {
onChange={this.updateTitle.bind(this)}
/>
-
+
@@ -65,7 +65,7 @@ export default function Boards({ stats, boards, createBoard }) {
- {Object.values(boards).map(board => )}
+ {Object.values(boards).map(board => )}
{Object.keys(boards).length === 0 ? No boards opened : null}
diff --git a/src/components/BoardsItem.js b/src/components/BoardsItem.js
index 90ea0b4..2022098 100644
--- a/src/components/BoardsItem.js
+++ b/src/components/BoardsItem.js
@@ -1,9 +1,9 @@
import React from 'react'
-import { List, Button, Card } from 'semantic-ui-react'
+import { Icon, List, Button, Card } from 'semantic-ui-react'
import { Link } from 'react-router-dom'
import { shortenAddress } from '../utils/orbitdb'
-export default function BoardsItem({ address, metadata, name }) {
+export default function BoardsItem({ address, metadata, name, closeBoard }) {
return
@@ -29,8 +29,15 @@ export default function BoardsItem({ address, metadata, name }) {
-
-
+
+
+
+
+
}
\ No newline at end of file
diff --git a/src/components/OpenBoardForm.js b/src/components/OpenBoardForm.js
index 8051aee..f15a51a 100644
--- a/src/components/OpenBoardForm.js
+++ b/src/components/OpenBoardForm.js
@@ -43,7 +43,7 @@ export default class OpenBoardForm extends Component {
-