about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-08-30 17:02:23 -0700
committerGitHub <noreply@github.com>2023-08-30 17:02:23 -0700
commita498acab6e9c4722b8abc509529e712755c2b01c (patch)
tree1e0fb27b944b0b7b4682d068778a95adc2a0183a
parentf9cab178b9ee2a0ccfde7e0e2cbabff7600de69c (diff)
downloadvoidsky-a498acab6e9c4722b8abc509529e712755c2b01c.tar.zst
fix types for breakpoints on mobile (#1342)
-rw-r--r--src/view/com/util/layouts/Breakpoints.tsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/view/com/util/layouts/Breakpoints.tsx b/src/view/com/util/layouts/Breakpoints.tsx
index 51c3ccd5a..45dc23615 100644
--- a/src/view/com/util/layouts/Breakpoints.tsx
+++ b/src/view/com/util/layouts/Breakpoints.tsx
@@ -3,6 +3,9 @@ import React from 'react'
 export const Desktop = ({}: React.PropsWithChildren<{}>) => null
 export const TabletOrDesktop = ({}: React.PropsWithChildren<{}>) => null
 export const Tablet = ({}: React.PropsWithChildren<{}>) => null
-export const TabletOrMobile = ({children}: React.PropsWithChildren<{}>) =>
-  children
-export const Mobile = ({children}: React.PropsWithChildren<{}>) => children
+export const TabletOrMobile = ({children}: React.PropsWithChildren<{}>) => (
+  <>{children}</>
+)
+export const Mobile = ({children}: React.PropsWithChildren<{}>) => (
+  <>{children}</>
+)