Added style to button
This commit is contained in:
parent
a8289e9f65
commit
a716fa8122
@ -2,30 +2,38 @@ import React from "react";
|
|||||||
import { callAPI } from "../../../actions/API";
|
import { callAPI } from "../../../actions/API";
|
||||||
|
|
||||||
export const CredChecker = (props) => {
|
export const CredChecker = (props) => {
|
||||||
|
|
||||||
const sendit = () => {
|
const sendit = () => {
|
||||||
let values = {
|
let values = {
|
||||||
hostname: document.getElementById("Host").value,
|
hostname: document.getElementById("Host").value,
|
||||||
username: document.getElementById("User").value,
|
username: document.getElementById("User").value,
|
||||||
password: document.getElementById("Pass").value,
|
password: document.getElementById("Pass").value,
|
||||||
}
|
};
|
||||||
callAPI
|
callAPI.post("/checkcpanel/", values).then((resp) => {
|
||||||
.post('/checkcpanel/', values)
|
props.credCallback([resp, values]);
|
||||||
.then( (resp) => {
|
});
|
||||||
props.credCallback([resp, values])
|
console.log();
|
||||||
})
|
};
|
||||||
console.log()
|
|
||||||
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col s3"><label htmlFor="Host">Hostname</label><input id="Host" ></input></div>
|
<div className="col s3">
|
||||||
<div className="col s3"><label htmlFor="User">Username</label><input id="User" ></input></div>
|
<label htmlFor="Host">Hostname</label>
|
||||||
<div className="col s3"><label htmlFor="Pass">Password</label><input id="Pass" ></input></div>
|
<input id="Host"></input>
|
||||||
</div>
|
</div>
|
||||||
<div className="row"><button className="" onClick={sendit}>Check Deets homie</button></div>
|
<div className="col s3">
|
||||||
|
<label htmlFor="User">Username</label>
|
||||||
|
<input id="User"></input>
|
||||||
</div>
|
</div>
|
||||||
)
|
<div className="col s3">
|
||||||
}
|
<label htmlFor="Pass">Password</label>
|
||||||
|
<input id="Pass"></input>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="row">
|
||||||
|
<button className="btn btn-secondary" onClick={sendit}>
|
||||||
|
Check Deets homie
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user