DevWarning: fix incorrect link to live WebStudio

This commit is contained in:
Marks Polakovs 2020-10-23 11:11:43 +01:00 committed by GitHub
parent 3169d94028
commit 5051d4d0cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@ function DevWarning() {
if (process.env.REACT_APP_PRODUCTION === "true") { if (process.env.REACT_APP_PRODUCTION === "true") {
return null; return null;
} }
const wsUrl = process.env.REACT_APP_MYRADIO_NONAPI_BASE + "/MyRadio/webstudio";
return ( return (
<> <>
<div className="p-2 alert-warning"> <div className="p-2 alert-warning">
@ -20,8 +21,8 @@ function DevWarning() {
</em> </em>
<br /> <br />
For the latest and greatest tested WebStudio, go to{" "} For the latest and greatest tested WebStudio, go to{" "}
<a href={process.env.REACT_APP_HOMEPAGE}> <a href={wsUrl}>
{process.env.REACT_APP_HOMEPAGE} {wsUrl}
</a> </a>
. .
</div> </div>