+ {controls.pending ?
{data.listing.copy.updating} : null}
+ {controls.error ? (
+
+ {data.listing.copy.retry}
+
+ }
+ />
+ ) : null}
{data.alert ? : null}
{data.notice ? : null}
@@ -159,13 +190,11 @@ export function RepositoriesShowPage({
/>
) : null}
- {normalizedQuery && visiblePrototypes.length === 0 ? (
+ {filtered && visiblePrototypes.length === 0 ? (
}
heading={data.noSearchResultsHeading}
description={data.noSearchResultsDescription}
- actionLabel={data.clearSearchLabel}
- onAction={() => setSearchQuery("")}
/>
) : data.prototypes.length === 0 ? (
data.newPrototypePath ? (
@@ -212,6 +241,36 @@ export function RepositoriesShowPage({
)}
+
+ {data.listing.pageCount > 1 ? (
+ ({ "data-sg-visit": "true" })}
+ labels={{
+ prev: data.listing.copy.previous,
+ prevAriaLabel: data.listing.copy.previous,
+ next: data.listing.copy.next,
+ nextAriaLabel: data.listing.copy.next,
+ }}
+ onPageChange={(event, page) => {
+ if (
+ event.button === 0 &&
+ !event.metaKey &&
+ !event.ctrlKey &&
+ !event.shiftKey &&
+ !event.altKey
+ ) {
+ event.preventDefault()
+ event.stopPropagation()
+ controls.onNavigate(pageHref(page))
+ }
+ }}
+ />
+ ) : null}