Theme: Fix wrong code segment in theme.md (#62488)

* fix wrong markdown

* fix prettier
pull/65444/head
Sven Grossmann 2 years ago committed by GitHub
parent ed82f961dd
commit 3335d46c5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      contribute/style-guides/themes.md

@ -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

Loading…
Cancel
Save