Merge pull request #9 from GotPPay/UI-text-fix

Ui text fix
This commit is contained in:
MirnaM
2018-01-16 14:48:51 +01:00
committed by GitHub
3 changed files with 8 additions and 7 deletions

View File

@@ -17,7 +17,8 @@
"watch-css": "nodemon -e scss -x \"npm run watch-css-mine\"", "watch-css": "nodemon -e scss -x \"npm run watch-css-mine\"",
"start-js": "react-scripts start", "start-js": "react-scripts start",
"start": "npm-run-all -p watch-css start-js", "start": "npm-run-all -p watch-css start-js",
"build": "react-scripts build", "react-build" : "react-scripts build",
"build": "npm-run-all -p build-css react-build",
"test": "react-scripts test --env=jsdom", "test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },

View File

@@ -28,13 +28,13 @@ class IntentDetails extends Component {
id="intent name" id="intent name"
lineDirection="center" lineDirection="center"
placeholder="Intent name" placeholder="Intent name"
label="Intent name" label="Question name"
className="md-cell md-cell--bottom IntentDetailsInputBoxes" className="md-cell md-cell--bottom IntentDetailsInputBoxes"
onChange={this.handleIntentNameEdit} onChange={this.handleIntentNameEdit}
maxLength={INTENT_NAME_MAX_LENGTH} maxLength={INTENT_NAME_MAX_LENGTH}
value={this.state.intent.intentName} /> value={this.state.intent.intentName} />
</div> </div>
<h5 className="QuestionTitle">Questions</h5> <h5 className="QuestionTitle">Question variants</h5>
{ {
this.state.intent.questions.map((question, index)=>{ this.state.intent.questions.map((question, index)=>{
return ( return (
@@ -68,8 +68,8 @@ class IntentDetails extends Component {
} }
<br></br> <br></br>
<br></br> <br></br>
<Button className="IntentDetailsButton" flat primary onClick={()=>{this.props.onDeleteIntentClick(this.state.intent)}} disabled={this.props.waiting}>Delete intent</Button> <Button className="IntentDetailsButton" flat primary onClick={()=>{this.props.onDeleteIntentClick(this.state.intent)}} disabled={this.props.waiting}>Delete question</Button>
<Button className="IntentDetailsButton" flat primary swapTheming onClick={this.addQuestion} disabled={this.props.waiting}>Add question</Button> <Button className="IntentDetailsButton" flat primary swapTheming onClick={this.addQuestion} disabled={this.props.waiting}>Add variant</Button>
<Button className="IntentDetailsButton" flat primary swapTheming onClick={()=>{this.props.onSaveIntentClick(this.state.intent)}} disabled={this.props.waiting}>Save</Button> <Button className="IntentDetailsButton" flat primary swapTheming onClick={()=>{this.props.onSaveIntentClick(this.state.intent)}} disabled={this.props.waiting}>Save</Button>
</div> </div>

View File

@@ -30,7 +30,7 @@ class IntentList extends Component {
<div className="IntentList-title"> <div className="IntentList-title">
<h3>Intents</h3> <h3>Questions</h3>
</div> </div>
{ {
this.state.intents.map((intent,index)=>{ this.state.intents.map((intent,index)=>{
@@ -45,7 +45,7 @@ class IntentList extends Component {
<br></br> <br></br>
<Button className="AddIntent" flat primary swapTheming <Button className="AddIntent" flat primary swapTheming
onClick={this.props.onAddIntentClick} onClick={this.props.onAddIntentClick}
disabled={this.props.waiting}>Add intent</Button> disabled={this.props.waiting}>Add question</Button>
</div> </div>
); );
} }