File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
NODE_PATH = src
2
2
REACT_APP_URL = " http://localhost:3000"
3
+ REACT_APP_ENV = " development"
3
4
REACT_APP_API_URL = " http://localhost:8008/"
4
5
# REACT_APP_API_URL="https://open.senrigan.io/"
Original file line number Diff line number Diff line change 1
1
NODE_PATH = src
2
2
REACT_APP_URL = " https://writeup.ai"
3
- REACT_APP_API_URL = " https://open.senrigan.io/"
3
+ REACT_APP_API_URL = " https://open.senrigan.io/"
4
+ REACT_APP_ENV = " production"
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ export class _MainComponent extends React.Component {
59
59
// this is getting into spaghetti, but needed this for async
60
60
this . undoAdd = this . undoAdd . bind ( this ) ;
61
61
62
+ const showTutorial =
63
+ process . env . REACT_APP_ENV === "development" ? false : true ;
64
+
62
65
this . state = {
63
66
editorValue : initialValue ,
64
67
currentDetailIndex : null ,
@@ -88,7 +91,7 @@ export class _MainComponent extends React.Component {
88
91
loginOrRegisterModal : false ,
89
92
settingsModalOpen : false ,
90
93
publishModalOpen : false ,
91
- tutorialModalOpen : false ,
94
+ tutorialModalOpen : showTutorial ,
92
95
93
96
// during saving, only let one request happen
94
97
publishDisabled : false ,
Original file line number Diff line number Diff line change 1
- import React , { Component , Fragment } from "react" ;
1
+ import React , { Component } from "react" ;
2
2
import Grid from "@material-ui/core/Grid/Grid" ;
3
3
import Typography from "@material-ui/core/Typography/Typography" ;
4
4
import { Link , withRouter } from "react-router-dom" ;
You can’t perform that action at this time.
0 commit comments