From 0bbdd62229e10a73e333eeb7944c27febbcae0db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Poduszl=C3=B3?= Date: Thu, 24 Oct 2019 16:45:27 +0200 Subject: [PATCH] docs(usePreferredColorScheme): simplify example --- packages/web-api-hooks/src/usePreferredColorScheme.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/web-api-hooks/src/usePreferredColorScheme.ts b/packages/web-api-hooks/src/usePreferredColorScheme.ts index e3d80c0..4e313c8 100644 --- a/packages/web-api-hooks/src/usePreferredColorScheme.ts +++ b/packages/web-api-hooks/src/usePreferredColorScheme.ts @@ -7,8 +7,7 @@ import useMedia from './useMedia'; * * @example * function Component() { - * const preferredColorScheme = usePreferredColorScheme(); - * const isDarkMode = usePreferredColorScheme() === 'dark'; + * const preferDarkMode = usePreferredColorScheme() === 'dark'; * // ... * } */