Replacing icon property when icon has been requested.

Creating <APIButton/> which handles success/failure/pending during API calls.
This commit is contained in:
Roland 2023-07-21 15:14:09 -06:00
parent 237b429cbf
commit 59c4ab2502
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
24 changed files with 483 additions and 334 deletions

View file

@ -1064,3 +1064,9 @@ export const useVINDecoder = (defaultVINNumber = '') => {
return {value, setValue, vin}
}
export const useWROLMode = () => {
// Returns the current boolean WROL Mode, during fetch this returns null.
const {status} = useContext(StatusContext);
return status ? status.wrol_mode : null;
}