Skip to content

Commit

Permalink
refactor: React node false -> null
Browse files Browse the repository at this point in the history
Signed-off-by: abizek <[email protected]>
  • Loading branch information
abizek committed Apr 16, 2024
1 parent 811f52e commit e6b7e2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/Base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { NotificationProvider } from '@/providers/notificationProvider';

import styles from './layouts.module.css';

const getSidebar = (slug: string): FC | false => {
const getSidebar = (slug: string): FC | null => {
switch (slug) {
case 'learn':
return memo(function Sidebar() {
Expand All @@ -23,11 +23,11 @@ const getSidebar = (slug: string): FC | false => {
return <WithSidebar navKeys={['about', 'getInvolved']} />;
});
case 'download':
return false;
return null;
case 'blog':
return false;
return null;
case '':
return false;
return null;
default:
return memo(function Sidebar() {
return <WithSidebar navKeys={[]} />;
Expand Down

0 comments on commit e6b7e2b

Please sign in to comment.