mirror of
https://github.com/revoltchat/revite.git
synced 2025-01-12 15:31:26 -05:00
Replace usage of <></>
with null
for project and style consistency
This commit is contained in:
parent
e03449b75c
commit
8ece647857
5 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue