mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 08:38:37 +00:00
Replace usage of <></> with null for project and style consistency
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -216,7 +216,7 @@ function Notifier({ options, notifs }: Props) {
|
||||
document.removeEventListener("visibilitychange", visChange);
|
||||
}, [guild_id, channel_id]);
|
||||
|
||||
return <></>;
|
||||
return null;
|
||||
}
|
||||
|
||||
const NotifierComponent = connectState(
|
||||
|
||||
@@ -63,7 +63,7 @@ function StateMonitor(props: Props) {
|
||||
return () => clearInterval(interval);
|
||||
}, [ props.typing ]);
|
||||
|
||||
return <></>;
|
||||
return null;
|
||||
}
|
||||
|
||||
export default connectState(
|
||||
|
||||
@@ -110,7 +110,7 @@ function SyncManager(props: Props) {
|
||||
return () => client.removeListener('packet', onPacket);
|
||||
}, [ disabled, props.sync ]);
|
||||
|
||||
return <></>;
|
||||
return null;
|
||||
}
|
||||
|
||||
export default connectState(
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user