From d85f09cbed5f3d2501f791e689011ae127df1cbb Mon Sep 17 00:00:00 2001
From: Kristóf Marussy <kristof@marussy.com>
Date: Sun, 9 Jan 2022 20:33:53 +0100
Subject: build: Add prettier
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

eslint will also enforce prettier rules, so there is no need to call
prettier separately in CI.

Signed-off-by: Kristóf Marussy <kristof@marussy.com>
---
 packages/renderer/src/components/ThemeProvider.tsx | 28 ++++++++++------------
 1 file changed, 13 insertions(+), 15 deletions(-)

(limited to 'packages/renderer/src/components/ThemeProvider.tsx')

diff --git a/packages/renderer/src/components/ThemeProvider.tsx b/packages/renderer/src/components/ThemeProvider.tsx
index eacaa52..3943371 100644
--- a/packages/renderer/src/components/ThemeProvider.tsx
+++ b/packages/renderer/src/components/ThemeProvider.tsx
@@ -27,20 +27,18 @@ import React from 'react';
 
 import { useStore } from './StoreProvider';
 
-export default observer(({ children }: {
-  children: JSX.Element | JSX.Element[];
-}) => {
-  const { shared: { shouldUseDarkColors } } = useStore();
+export default observer(
+  ({ children }: { children: JSX.Element | JSX.Element[] }) => {
+    const {
+      shared: { shouldUseDarkColors },
+    } = useStore();
 
-  const theme = createTheme({
-    palette: {
-      mode: shouldUseDarkColors ? 'dark' : 'light',
-    },
-  });
+    const theme = createTheme({
+      palette: {
+        mode: shouldUseDarkColors ? 'dark' : 'light',
+      },
+    });
 
-  return (
-    <MuiThemeProvider theme={theme}>
-      {children}
-    </MuiThemeProvider>
-  );
-});
+    return <MuiThemeProvider theme={theme}>{children}</MuiThemeProvider>;
+  },
+);
-- 
cgit v1.2.3-54-g00ecf

