Update clean-bags-occur.md
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
@@ -60,10 +60,10 @@ Replace hook usage in custom components:
|
||||
+ import { useBg, BgProvider } from '@backstage/ui';
|
||||
|
||||
- const { surface } = useSurface({ surface: props.surface });
|
||||
+ const { bg } = useBg({ bg: props.bg });
|
||||
+ const { bg } = useBg({ mode: 'container', bg: props.bg });
|
||||
|
||||
- const { surface } = useSurface({ onSurface: props.onSurface });
|
||||
+ const { bg } = useBg({ leaf: true });
|
||||
+ const { bg } = useBg({ mode: 'leaf' });
|
||||
```
|
||||
|
||||
**Affected components:** box, button, button-icon, button-link, toggle-button, card, alert, flex, grid
|
||||
|
||||
Reference in New Issue
Block a user