From ef187b61ed1ec35170b8f4d4c851239244497009 Mon Sep 17 00:00:00 2001 From: pierroberto Date: Tue, 8 Sep 2020 22:46:17 +0200 Subject: [PATCH 1/5] feat: add donate button --- src/pages/popup/Dashboard.js | 35 ++++++++++++++++++++++------------- src/pages/popup/dashboard.css | 2 +- 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/src/pages/popup/Dashboard.js b/src/pages/popup/Dashboard.js index f5dae35..55d20f1 100644 --- a/src/pages/popup/Dashboard.js +++ b/src/pages/popup/Dashboard.js @@ -5,7 +5,7 @@ import { deleteAllBookmark, deleteOneBookmark, addBookmark, - addFromButton + addFromButton, } from "../background/actions"; import "./dashboard.css"; import ListView from "./ListView.js"; @@ -21,10 +21,10 @@ class Dashboard extends React.Component { saveBookmark() { return new Promise((resolved, rejected) => { - chrome.tabs.query({ active: true, lastFocusedWindow: true }, data => { + chrome.tabs.query({ active: true, lastFocusedWindow: true }, (data) => { resolved(data); }); - }).then(link => { + }).then((link) => { if (!link[0].favIconUrl) link[0].favIconUrl = "../assets/nothing.png"; if (link[0].title.length > 10) link[0].title = truncate(link[0].title.toString(), 50); @@ -50,7 +50,7 @@ class Dashboard extends React.Component { this.props.deleteAll(); } - deleteTab = url => { + deleteTab = (url) => { this.props.deleteOne(url); return data; }; @@ -58,7 +58,7 @@ class Dashboard extends React.Component { componentDidMount() { // VERSION 1.0.2 Double check if the link has expireDate - this.props.bookmark.tabs.map(tab => { + this.props.bookmark.tabs.map((tab) => { if (tab.expiry >= this.props.settings.expireDate + Date.now()) { store.dispatch({ type: "EXPIRY", url: tab.tab[0].url }); } @@ -122,7 +122,16 @@ class Dashboard extends React.Component { {this.checkSearch()}
-
Pier Roberto Lucisano 📌 2019
+
Pier Roberto Lucisano 📌 2020
+
+ + ❤️ Donate + +