From f018c454bf4549379e0380d780b1c2bd64538b2b Mon Sep 17 00:00:00 2001 From: Michael Fix Date: Wed, 8 Aug 2018 14:11:28 -0700 Subject: [PATCH] Implement PWA functionality (#455) * implement PWA functionality * disable tweet button when offline * just remove tweet button instead --- components/Button.js | 1 + components/Editor.js | 19 +- components/Meta.js | 1 + next.config.js | 5 +- package.json | 1 + server.js | 3 + static/manifest.json | 18 + yarn.lock | 1126 +++++++++++++++++++++++------------------- 8 files changed, 657 insertions(+), 517 deletions(-) create mode 100644 static/manifest.json diff --git a/components/Button.js b/components/Button.js index 9d02a1c..cd47412 100644 --- a/components/Button.js +++ b/components/Button.js @@ -10,6 +10,7 @@ export default props => ( color: props.color, border: `1px solid ${props.color}` }} + disabled={props.disabled} > {props.title}