mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Theme: Fix wrong code segment in theme.md (#62488)
* fix wrong markdown * fix prettier
This commit is contained in:
@@ -29,11 +29,12 @@ function Foo(props: FooProps) {
|
|||||||
const styles = useStyles2(getStyles);
|
const styles = useStyles2(getStyles);
|
||||||
// Use styles with className
|
// Use styles with className
|
||||||
}
|
}
|
||||||
```
|
|
||||||
|
|
||||||
const getStyles = (theme: GrafanaTheme2) => css({
|
const getStyles = (theme: GrafanaTheme2) =>
|
||||||
padding: theme.spacing(1,2)
|
css({
|
||||||
});
|
padding: theme.spacing(1, 2),
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
#### Get the theme object
|
#### Get the theme object
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user