Skip to content

Commit c73436a

Browse files
authored
Merge pull request #57 from variadicjs/error-msg-fix
error msg fix
2 parents 15488ba + 7aba155 commit c73436a

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/FuncCard.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,15 @@
55
box-shadow: 0 0 5px 1px grey;
66
}
77

8-
.text-field {
9-
max-width: 35px;
10-
margin: 10px;
11-
}
12-
138
.button {
149
width: 40%;
1510
padding: 0;
1611
margin-left: 10px;
1712
}
1813

1914
.carousel {
20-
height: 500px;
15+
height: 600px;
16+
margin-top: -60px;
2117
}
2218

2319
.p-style {

src/components/FuncParams.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ class FuncParams extends Component {
3535
id={`${funcName}-input`}
3636
type="number"
3737
step="0.01"
38-
placeholder="Enter number and hit RETURN"
39-
error={error}
38+
label="Enter number and hit RETURN"
4039
onChange={this.handleInputChange}
4140
/>
41+
<p style={{color: 'red'}}>{error}</p>
4242
</form>
4343
);
4444
}
4545
}
4646

47-
export default FuncParams;
47+
export default FuncParams;

0 commit comments

Comments
 (0)