@opexa/portal-components 0.0.147 → 0.0.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,7 @@ export interface GamesListProps {
|
|
|
14
14
|
search?: string;
|
|
15
15
|
/** @default "Games"*/
|
|
16
16
|
heading?: string;
|
|
17
|
-
|
|
17
|
+
viewGameProvidersUrl?: string;
|
|
18
18
|
className?: string | ClassNameEntries;
|
|
19
19
|
}
|
|
20
20
|
export declare function GamesList__client(props: GamesListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,7 +22,7 @@ export function GamesList__client(props) {
|
|
|
22
22
|
const classNames = isString(props.className)
|
|
23
23
|
? { root: props.className }
|
|
24
24
|
: (props.className ?? {});
|
|
25
|
-
return (_jsxs("div", { className: classNames.root, children: [_jsxs("div", { className: "flex flex-col lg:flex-row lg:items-center lg:justify-between", children: [_jsx("h2", { className: "order-2 mt-4xl text-lg font-semibold lg:order-none lg:mt-0", children: props.heading ?? 'Games' }), props.
|
|
25
|
+
return (_jsxs("div", { className: classNames.root, children: [_jsxs("div", { className: "flex flex-col lg:flex-row lg:items-center lg:justify-between", children: [_jsx("h2", { className: "order-2 mt-4xl text-lg font-semibold lg:order-none lg:mt-0", children: props.heading ?? 'Games' }), props.viewGameProvidersUrl && (_jsxs(Link, { href: props.viewGameProvidersUrl, className: "text-button-tertiary-fg order-1 flex items-center gap-sm text-lg font-semibold lg:order-none lg:text-sm", children: [_jsx(ChevronLeftIcon, { className: "size-5" }), "Back to all Providers"] }))] }), totalRows <= 0 && (_jsx(Empty, { icon: loading ? SpinnerIcon : GamingPad01Icon, title: loading ? 'Just a moment' : 'No games', message: loading
|
|
26
26
|
? 'Fetching latest games...'
|
|
27
27
|
: 'No game is currently available. Please check back later', className: "mt-lg" })), totalRows >= 1 && (_jsxs(_Fragment, { children: [_jsx("div", { className: "mt-lg grid grid-cols-3 gap-1.5 lg:grid-cols-6 lg:gap-2.5", children: availableRows.map((game) => (_jsx(GameContext, { value: game, children: _jsx(Game, { badge: props.badge, className: {
|
|
28
28
|
root: classNames.thumbnailRoot,
|