Skip to content

Commit

Permalink
fixed some bugs of UI
Browse files Browse the repository at this point in the history
  • Loading branch information
KimQ0126 committed Jul 27, 2018
1 parent dc2a4bc commit d0b087f
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 15 deletions.
4 changes: 2 additions & 2 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"main.css": "static/css/main.35bdd23a.css",
"main.css.map": "static/css/main.35bdd23a.css.map",
"main.js": "static/js/main.a5adcb76.js",
"main.js.map": "static/js/main.a5adcb76.js.map"
"main.js": "static/js/main.50c3325a.js",
"main.js.map": "static/js/main.50c3325a.js.map"
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./favicon.ico"><title>Spacy Rules Editor</title><link href="./static/css/main.35bdd23a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"/><link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/><div id="root"></div><script type="text/javascript" src="./static/js/main.a5adcb76.js"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./favicon.ico"><title>Spacy Rules Editor</title><link href="./static/css/main.35bdd23a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"/><link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/><div id="root"></div><script type="text/javascript" src="./static/js/main.50c3325a.js"></script></body></html>
2 changes: 1 addition & 1 deletion build/service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions build/static/js/main.50c3325a.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/main.50c3325a.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions build/static/js/main.a5adcb76.js

This file was deleted.

1 change: 0 additions & 1 deletion build/static/js/main.a5adcb76.js.map

This file was deleted.

6 changes: 2 additions & 4 deletions src/components/TestArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,7 @@ class TestArea extends React.Component {
Clear
</Button>
</div>
<div>
"Number of the extraction results: " {this.state.res_arr_length}
</div>

<Grid item xs={12} className={classes.result}>
<Tabs
value={value}
Expand Down Expand Up @@ -559,7 +557,7 @@ class TestArea extends React.Component {
<Paper className={classes.display_container}>
{this.state.token_display}
<div>
"Number of Extractions: " + {this.state.number_of_extraction}
Number of Extractions: {this.state.number_of_extraction}
</div>
</Paper>
</TabContainer>
Expand Down
4 changes: 2 additions & 2 deletions src/components/TokenItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -788,14 +788,14 @@ class Tokenitem extends Component {

<IconButton
data-tip
data-for={add_before_button}
data-for="add_before_button"
color="primary"
aria-label="Add"
onClick={this.handleAddClick}
>
<AddIcon />
</IconButton>
<ReactTooltip id={add_before_button} type="info" effect="solid">
<ReactTooltip id="add_before_button" type="info" effect="solid">
<span>Add Token Before</span>
</ReactTooltip>

Expand Down
4 changes: 2 additions & 2 deletions src/components/TokenList.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class TokenList extends Component {
<div className={classes.container}>
<Button
data-tip
data-for={add_after_button}
data-for="add_after_button"
variant="text"
color="secondary"
aria-label="add"
Expand All @@ -358,7 +358,7 @@ class TokenList extends Component {
>
<AddIcon className={classes.extendedIcon} />
</Button>
<ReactTooltip id={add_after_button} type="info" effect="solid">
<ReactTooltip id="add_after_button" type="info" effect="solid">
<span>Add Token at the End</span>
</ReactTooltip>
</div>
Expand Down

0 comments on commit d0b087f

Please sign in to comment.