Skip to content

Commit 0496362

Browse files
committed
feat: add redirection URL and placeholder to ListingComponent
1 parent 5c2b26e commit 0496362

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

app/[locale]/(user)/datasets/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const DatasetsListing = () => {
1414
<ListingComponent
1515
fetchDatasets={fetchDatasets}
1616
breadcrumbData={breadcrumbData}
17+
redirectionURL={`/datasets`}
18+
placeholder="Start typing to search for any Dataset"
1719
/>
1820
);
1921
};

app/[locale]/(user)/sectors/[sectorSlug]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ const SectorDetailsPage = ({ params }: { params: { sectorSlug: string } }) => {
4848
categoryName={sector?.name}
4949
categoryDescription={sector?.description ?? undefined}
5050
categoryImage={`/Sectors/${sector.name}.svg`}
51+
redirectionURL={`/datasets`}
52+
placeholder="Start typing to search for any Dataset"
5153
/>
5254
);
5355
};

app/[locale]/(user)/usecases/page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ const UseCasesListingPage = () => {
5151
Explore Use Cases
5252
</Text>
5353
</div>
54-
<ListingComponent fetchDatasets={fetchUseCases} />
54+
<ListingComponent
55+
fetchDatasets={fetchUseCases}
56+
placeholder="Start typing to search for any Use Case"
57+
redirectionURL={`/usecases`}
58+
/>
5559
</div>
5660
</main>
5761
);

0 commit comments

Comments
 (0)