From ec3adc6d1c41df10a8f24c634fa0dbd25b5d4e10 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 18 Jul 2020 11:33:34 -0700 Subject: [PATCH] fix: 2 missed process.env spots on frontend --- app/components/Branding.js | 3 ++- app/scenes/Login/index.js | 2 +- app/scenes/Settings/Tokens.js | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/components/Branding.js b/app/components/Branding.js index 610d7c7e0..88a51686c 100644 --- a/app/components/Branding.js +++ b/app/components/Branding.js @@ -2,12 +2,13 @@ import * as React from "react"; import styled from "styled-components"; import OutlineLogo from "./OutlineLogo"; +import env from "env"; type Props = { href?: string, }; -function Branding({ href = process.env.URL }: Props) { +function Branding({ href = env.URL }: Props) { return (  Outline diff --git a/app/scenes/Login/index.js b/app/scenes/Login/index.js index 7d90c7b2a..d4a613e2f 100644 --- a/app/scenes/Login/index.js +++ b/app/scenes/Login/index.js @@ -65,7 +65,7 @@ class Login extends React.Component { const header = env.DEPLOYMENT === "hosted" && (config.hostname ? ( - + Back to home ) : ( diff --git a/app/scenes/Settings/Tokens.js b/app/scenes/Settings/Tokens.js index 6a4c65809..84efd58da 100644 --- a/app/scenes/Settings/Tokens.js +++ b/app/scenes/Settings/Tokens.js @@ -46,7 +46,9 @@ class Tokens extends React.Component { You can create an unlimited amount of personal tokens to authenticate with the API. For more details about the API take a look at the{" "} - developer documentation. + + developer documentation + . {hasApiKeys && (