From cf23e60c17763123caa77f1194e6efd913692ea1 Mon Sep 17 00:00:00 2001
From: Kristóf Marussy <kristof@marussy.com>
Date: Thu, 23 Dec 2021 00:43:55 +0100
Subject: feat: Add shared package for electron ipc

---
 packages/renderer/src/index.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'packages/renderer/src/index.tsx')

diff --git a/packages/renderer/src/index.tsx b/packages/renderer/src/index.tsx
index 67bdf93..452448c 100644
--- a/packages/renderer/src/index.tsx
+++ b/packages/renderer/src/index.tsx
@@ -22,7 +22,10 @@ function App() {
     <React.StrictMode>
       <ThemeProvider theme={theme}>
         <CssBaseline enableColorScheme />
-        <Button variant="contained">
+        <Button
+          variant="contained"
+          onClick={window.sophieRenderer.buttonClicked}
+        >
           Hello Sophie!
         </Button>
       </ThemeProvider>
-- 
cgit v1.2.3-70-g09d2

