mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Theme: Fix wrong code segment in theme.md (#62488)
* fix wrong markdown * fix prettier
This commit is contained in:
parent
ed82f961dd
commit
3335d46c5f
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user