Replace usage of <></> with null for project and style consistency

This commit is contained in:
bree 2021-07-04 21:13:44 -04:00
parent e03449b75c
commit 8ece647857
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 1B2E56B9EC985B96
5 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@ export default function UpdateIndicator() {
return internalSubscribe('PWA', 'update', () => setPending(true)); return internalSubscribe('PWA', 'update', () => setPending(true));
}); });
if (!pending) return <></>; if (!pending) return null;
const theme = useContext(ThemeContext); const theme = useContext(ThemeContext);
return ( return (

View file

@ -216,7 +216,7 @@ function Notifier({ options, notifs }: Props) {
document.removeEventListener("visibilitychange", visChange); document.removeEventListener("visibilitychange", visChange);
}, [guild_id, channel_id]); }, [guild_id, channel_id]);
return <></>; return null;
} }
const NotifierComponent = connectState( const NotifierComponent = connectState(

View file

@ -63,7 +63,7 @@ function StateMonitor(props: Props) {
return () => clearInterval(interval); return () => clearInterval(interval);
}, [ props.typing ]); }, [ props.typing ]);
return <></>; return null;
} }
export default connectState( export default connectState(

View file

@ -110,7 +110,7 @@ function SyncManager(props: Props) {
return () => client.removeListener('packet', onPacket); return () => client.removeListener('packet', onPacket);
}, [ disabled, props.sync ]); }, [ disabled, props.sync ]);
return <></>; return null;
} }
export default connectState( export default connectState(

View file

@ -30,7 +30,7 @@ export function Roles({ server }: Props) {
if (role !== 'default' && typeof roles[role] === 'undefined') { if (role !== 'default' && typeof roles[role] === 'undefined') {
useEffect(() => setRole('default')); useEffect(() => setRole('default'));
return <></>; return null;
} }
const v = (id: string) => I32ToU32(id === 'default' ? server.default_permissions : roles[id].permissions) const v = (id: string) => I32ToU32(id === 'default' ? server.default_permissions : roles[id].permissions)