Skip to content

Commit

Permalink
please tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
kenoir committed Nov 28, 2024
1 parent b636ec0 commit 535ae3d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions content/webapp/pages/concepts/[conceptId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ type ImagesTabPanelProps = {
id: string;
link: LinkProps;
results: ReturnedResults<ImageType>;
totalResults: number;
totalResults: number | undefined;
};
const ImagesTabPanel: FunctionComponent<ImagesTabPanelProps> = ({
id,
Expand All @@ -161,7 +161,7 @@ const ImagesTabPanel: FunctionComponent<ImagesTabPanelProps> = ({
<div role="tabpanel" id={`tabpanel-${id}`} aria-labelledby={`tab-${id}`}>
<ImageEndpointSearchResults images={results.pageResults} />
<Space $v={{ size: 'm', properties: ['margin-top'] }}>
{totalResults > 0 && (
{totalResults && (
<SeeMoreButton
text="All images"
totalResults={totalResults}
Expand All @@ -177,7 +177,7 @@ type WorksTabPanelProps = {
id: string;
link: LinkProps;
results: ReturnedResults<WorkBasic>;
totalResults: number;
totalResults: number | undefined;
};
const WorksTabPanel: FunctionComponent<WorksTabPanelProps> = ({
id,
Expand All @@ -190,7 +190,7 @@ const WorksTabPanel: FunctionComponent<WorksTabPanelProps> = ({
<div role="tabpanel" id={`tabpanel-${id}`} aria-labelledby={`tab-${id}`}>
<WorksSearchResults works={results.pageResults} />
<Space $v={{ size: 'l', properties: ['padding-top'] }}>
{totalResults > 0 && (
{totalResults && (
<SeeMoreButton
text="All works"
totalResults={totalResults}
Expand All @@ -214,14 +214,14 @@ type PageSectionDefinition<T> = {
id: string;
link: LinkProps;
results: ReturnedResults<T>;
totalResults: number;
totalResults: number | undefined;
};
};
type PageSectionDefinitionProps<T> = {
tabId: string;
resultsGroup: ReturnedResults<T> | undefined;
tabLabelText: string;
totalResults: number;
totalResults: number | undefined;
link: LinkProps;
};

Expand Down Expand Up @@ -251,7 +251,7 @@ type SectionData = {
label: string;
works: ReturnedResults<WorkBasic> | undefined;
images: ReturnedResults<ImageType> | undefined;
totalResults: { works: number; images: number };
totalResults: { works: number | undefined; images: number | undefined };
};

type SectionsData = {
Expand Down

0 comments on commit 535ae3d

Please sign in to comment.