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

* fix wrong markdown

* fix prettier
This commit is contained in:
Sven Grossmann 2023-03-28 13:18:50 +02:00 committed by GitHub
parent ed82f961dd
commit 3335d46c5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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