mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Replacing icon property when icon has been requested.
Creating <APIButton/> which handles success/failure/pending during API calls.
This commit is contained in:
parent
237b429cbf
commit
59c4ab2502
24 changed files with 483 additions and 334 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue