Update component.tsx

This commit is contained in:
André Castro 2024-06-19 17:29:21 -03:00 committed by GitHub
parent d2faea179f
commit 05598dc953
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -197,7 +197,6 @@ const NotesContainerGraphql: React.FC<NotesContainerGraphqlProps> = (props) => {
const { isOpen: isSidebarContentOpen } = sidebarContent; const { isOpen: isSidebarContentOpen } = sidebarContent;
const isGridLayout = useStorageKey('isGridEnabled'); const isGridLayout = useStorageKey('isGridEnabled');
console.log('isGridLayout', isGridLayout, 'isSidebarContentOpen', isSidebarContentOpen);
const shouldShowSharedNotesOnPresentationArea = isGridLayout ? !!pinnedPadData const shouldShowSharedNotesOnPresentationArea = isGridLayout ? !!pinnedPadData
&& pinnedPadData.sharedNotes[0]?.sharedNotesExtId === NOTES_CONFIG.id && isSidebarContentOpen : !!pinnedPadData && pinnedPadData.sharedNotes[0]?.sharedNotesExtId === NOTES_CONFIG.id && isSidebarContentOpen : !!pinnedPadData
&& pinnedPadData.sharedNotes[0]?.sharedNotesExtId === NOTES_CONFIG.id; && pinnedPadData.sharedNotes[0]?.sharedNotesExtId === NOTES_CONFIG.id;