From 3335d46c5f44058696d97886af7833106471b853 Mon Sep 17 00:00:00 2001 From: Sven Grossmann Date: Tue, 28 Mar 2023 13:18:50 +0200 Subject: [PATCH] Theme: Fix wrong code segment in theme.md (#62488) * fix wrong markdown * fix prettier --- contribute/style-guides/themes.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/contribute/style-guides/themes.md b/contribute/style-guides/themes.md index f6a0eea866b..f6118bd1d23 100644 --- a/contribute/style-guides/themes.md +++ b/contribute/style-guides/themes.md @@ -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