From 1f0bf371094010f751f903937a600931ef7ea205 Mon Sep 17 00:00:00 2001 From: Renard Date: Mon, 30 Sep 2019 22:11:19 -0300 Subject: Añadidos: Settings ✨ --- src/Post.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/Post.js') diff --git a/src/Post.js b/src/Post.js index 18d81e0..68ba36e 100644 --- a/src/Post.js +++ b/src/Post.js @@ -91,7 +91,7 @@ class Post extends Component { handleConfirm() { this.setState({ deleteDialog: false }); const { post, currentBoard } = this.props; - let password = localStorage.getItem("password"); + let password = JSON.parse(localStorage.getItem("settings")).postPassword; fetch( `https://bienvenidoainternet.org/cgi/api/delete?dir=${currentBoard.dir}&id=${post.id}&password=${password}` ) @@ -251,12 +251,17 @@ class Post extends Component { isDeleteable = false; } + let settingRenderAvatar = JSON.parse(localStorage.getItem("settings")) + .showAvatars; + return ( - + {settingRenderAvatar && ( + + )}