From 8ece6478571196e8d1fbd3a37cff419ab8af8db9 Mon Sep 17 00:00:00 2001 From: bree Date: Sun, 4 Jul 2021 21:13:44 -0400 Subject: [PATCH] Replace usage of `<>` with `null` for project and style consistency --- src/components/common/UpdateIndicator.tsx | 2 +- src/context/revoltjs/Notifications.tsx | 2 +- src/context/revoltjs/StateMonitor.tsx | 2 +- src/context/revoltjs/SyncManager.tsx | 2 +- src/pages/settings/server/Roles.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/common/UpdateIndicator.tsx b/src/components/common/UpdateIndicator.tsx index 111cd476..937d6522 100644 --- a/src/components/common/UpdateIndicator.tsx +++ b/src/components/common/UpdateIndicator.tsx @@ -15,7 +15,7 @@ export default function UpdateIndicator() { return internalSubscribe('PWA', 'update', () => setPending(true)); }); - if (!pending) return <>; + if (!pending) return null; const theme = useContext(ThemeContext); return ( diff --git a/src/context/revoltjs/Notifications.tsx b/src/context/revoltjs/Notifications.tsx index dc90617b..4ae6c74a 100644 --- a/src/context/revoltjs/Notifications.tsx +++ b/src/context/revoltjs/Notifications.tsx @@ -216,7 +216,7 @@ function Notifier({ options, notifs }: Props) { document.removeEventListener("visibilitychange", visChange); }, [guild_id, channel_id]); - return <>; + return null; } const NotifierComponent = connectState( diff --git a/src/context/revoltjs/StateMonitor.tsx b/src/context/revoltjs/StateMonitor.tsx index 1269acc3..e333c7ac 100644 --- a/src/context/revoltjs/StateMonitor.tsx +++ b/src/context/revoltjs/StateMonitor.tsx @@ -63,7 +63,7 @@ function StateMonitor(props: Props) { return () => clearInterval(interval); }, [ props.typing ]); - return <>; + return null; } export default connectState( diff --git a/src/context/revoltjs/SyncManager.tsx b/src/context/revoltjs/SyncManager.tsx index 99842b44..2c1bbd83 100644 --- a/src/context/revoltjs/SyncManager.tsx +++ b/src/context/revoltjs/SyncManager.tsx @@ -110,7 +110,7 @@ function SyncManager(props: Props) { return () => client.removeListener('packet', onPacket); }, [ disabled, props.sync ]); - return <>; + return null; } export default connectState( diff --git a/src/pages/settings/server/Roles.tsx b/src/pages/settings/server/Roles.tsx index 09bf0921..a1391929 100644 --- a/src/pages/settings/server/Roles.tsx +++ b/src/pages/settings/server/Roles.tsx @@ -30,7 +30,7 @@ export function Roles({ server }: Props) { if (role !== 'default' && typeof roles[role] === 'undefined') { useEffect(() => setRole('default')); - return <>; + return null; } const v = (id: string) => I32ToU32(id === 'default' ? server.default_permissions : roles[id].permissions)