diff options
| author | Melonai <einebeere@gmail.com> | 2020-06-11 02:59:57 +0200 |
|---|---|---|
| committer | Melonai <einebeere@gmail.com> | 2020-06-11 02:59:57 +0200 |
| commit | 85443434a6869fc6bae68d075595fb633fd74876 (patch) | |
| tree | 320fd495762feefca5698602a65d2b30bba0ee5e /client/src/Components/Button.js | |
| parent | 9f02f313c56b7bb909010628d2931a4aada3a778 (diff) | |
| download | shorest-85443434a6869fc6bae68d075595fb633fd74876.tar.zst shorest-85443434a6869fc6bae68d075595fb633fd74876.zip | |
a full restyle
Diffstat (limited to 'client/src/Components/Button.js')
| -rw-r--r-- | client/src/Components/Button.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/Components/Button.js b/client/src/Components/Button.js index 46c0c27..b6ed91b 100644 --- a/client/src/Components/Button.js +++ b/client/src/Components/Button.js @@ -1,9 +1,13 @@ import React from 'react'; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import {faArrowRight, faTimes} from '@fortawesome/free-solid-svg-icons'; function Button(props) { return ( <div className="button-container"> - <input type="submit" value={props.valid ? "→" : ""} className="button" id="btn" onClick={props.submit}/> + <button type="submit" className={"button" + (props.valid ? "" : " disabled")} id="btn" onClick={props.submit}> + <FontAwesomeIcon icon={props.valid ? faArrowRight : faTimes}/> + </button> </div> ) } |
