Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyichen committed Oct 25, 2023
1 parent b5a1862 commit ec51b5c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/pages/user/libraries/[[...id]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,18 @@ const LibrariesHome: NextPage<ILibrariesHomeProps> = ({ id, subpage }) => {
}
/>
)}
{!!id && !!library && !subpage && <LibraryEntityPane library={library} publicView={false} onRefetch={refetch} />}
{!!id && !!library && subpage === 'settings' && <LibrarySettingsPane library={library} onRefetch={refetch} />}
{!id && <LibrariesLandingPane />}

{!!id && !!library ? (
<>
{subpage === 'settings' ? (
<LibrarySettingsPane library={library} onRefetch={refetch} />
) : (
<LibraryEntityPane library={library} publicView={false} onRefetch={refetch} />
)}
</>
) : (
<>{!id ? <LibrariesLandingPane /> : null}</>
)}
</>
);
};
Expand Down

0 comments on commit ec51b5c

Please sign in to comment.