From 43cc1bce1c5c0178e81a202435188faf08269e14 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Sun, 17 Jan 2021 15:41:57 -0600 Subject: [PATCH] make "BETA" watermark depend on app version --- src/components/Editor.tsx | 2 +- src/components/editor.scss | 8 +++++--- src/index.tsx | 5 +++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx index 75449edf..669fd12b 100644 --- a/src/components/Editor.tsx +++ b/src/components/Editor.tsx @@ -78,7 +78,7 @@ class Editor extends React.Component { render(): JSX.Element { const { darkMode, i18n, onSessionChanged } = this.props; return ( -
+
this.editor?.resize()}> { } }); +// special styling for beta versions +if (process.env.REACT_APP_VERSION?.match(/beta/)) { + document.body.classList.add('pb-beta'); +} + sagaMiddleware.run(rootSaga); ReactDOM.render(