Refactor: viewitemcontainer

This commit is contained in:
grafixeyehero 2023-10-04 23:14:14 +03:00 committed by Bill Thornton
parent 550ad476af
commit c61df2eb92
28 changed files with 520 additions and 1001 deletions

View file

@ -7,9 +7,10 @@ import { appRouter } from 'components/router/appRouter';
import SectionContainer from './SectionContainer';
import { Sections } from 'types/suggestionsSections';
import { ParentId } from 'types/library';
interface SuggestionsSectionContainerProps {
parentId?: string | null;
parentId: ParentId;
section: Sections;
}
@ -37,7 +38,7 @@ const SuggestionsSectionContainer: FC<SuggestionsSectionContainerProps> = ({
return (
<SectionContainer
sectionTitle={globalize.translate(section.name)}
items={items || []}
items={items ?? []}
url={getRouteUrl()}
cardOptions={{
...section.cardOptions