[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:
Grot (@grafanabot)
2023-05-02 12:16:26 +00:00
committed by GitHub
co-authored by Sven Grossmann
parent ee278fe3b9
commit 04d7c5f790
+5 -4
View File
@@ -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