mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 11:26:25 -05: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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue