[v9.4.x] Theme: Fix wrong code segment in theme.md (#65438)
Theme: Fix wrong code segment in theme.md (#62488)
* fix wrong markdown
* fix prettier
(cherry picked from commit 3335d46c5f)
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
This commit is contained in:
co-authored by
Sven Grossmann
parent
ee278fe3b9
commit
04d7c5f790
@@ -29,11 +29,12 @@ function Foo(props: FooProps) {
|
||||
const styles = useStyles2(getStyles);
|
||||
// Use styles with className
|
||||
}
|
||||
```
|
||||
|
||||
const getStyles = (theme: GrafanaTheme2) => css({
|
||||
padding: theme.spacing(1,2)
|
||||
});
|
||||
const getStyles = (theme: GrafanaTheme2) =>
|
||||
css({
|
||||
padding: theme.spacing(1, 2),
|
||||
});
|
||||
```
|
||||
|
||||
#### Get the theme object
|
||||
|
||||
|
||||
Reference in New Issue
Block a user