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

@ -173,11 +173,11 @@ export function Accordion(props) {
return <SAccordion {...props}/>
}
export function Button(props) {
export const Button = React.forwardRef((props, ref) => {
const {i, inverted} = useContext(ThemeContext);
props = defaultGrey({...i, ...props}, inverted);
return <SButton {...props}/>
}
return <SButton ref={ref} {...props}/>
});
export function Divider({...props}) {
const {i} = useContext(ThemeContext);