Skip to content

Commit e11faac

Browse files
committed
Update package
1 parent c61c381 commit e11faac

File tree

5 files changed

+26
-73
lines changed

5 files changed

+26
-73
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"@macrostrat/style-system": "^0.2.1",
8080
"@macrostrat/svg-map-components": "^1.0.4",
8181
"@macrostrat/timescale": "^2.2.1",
82-
"@macrostrat/ui-components": "^4.3.1",
82+
"@macrostrat/ui-components": "^4.3.2",
8383
"@react-hook/size": "^2.1.2",
8484
"@supabase/postgrest-js": "^1.18.1",
8585
"@turf/bbox": "^6.5.0",

pages/dev/test/+Page.client.ts

Lines changed: 0 additions & 53 deletions
This file was deleted.

pages/lex/minerals/+Page.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ export function Page() {
1818
setInput(event.toLowerCase());
1919
};
2020

21+
const params = {
22+
order: "id.asc",
23+
mineral: `ilike.*${input}*`,
24+
id: `gt.0`,
25+
limit: PAGE_SIZE,
26+
};
27+
2128
return h(ContentPage, [
2229
h(StickyHeader, { className: "header" }, [
2330
h(PageBreadcrumbs, {
@@ -29,17 +36,13 @@ export function Page() {
2936
}),
3037
]),
3138
h(InfiniteScrollView, {
32-
params: {
33-
order: "id.asc",
34-
mineral: `ilike.*${input}*`,
35-
id: `gt.0`,
36-
limit: PAGE_SIZE,
37-
},
39+
params,
3840
route: `${apiDomain}/api/pg/minerals`,
3941
getNextParams,
40-
// initialItems: res,
42+
initialItems: input === "" ? res : [],
4143
hasMore,
4244
itemComponent: MineralItem,
45+
key: input
4346
})
4447
]);
4548
}

pages/lex/strat-names/+Page.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ export function Page() {
2020
setInput(event.toLowerCase());
2121
};
2222

23+
const params = {
24+
order: "combined_id.asc",
25+
all_names: `ilike.*${input}*`,
26+
combined_id: `gt.0`,
27+
limit: PAGE_SIZE,
28+
}
29+
2330
return h(ContentPage, [
2431
h(StickyHeader, { className: "header" }, [
2532
h(PageBreadcrumbs, {
@@ -56,17 +63,13 @@ export function Page() {
5663
}),
5764
]),
5865
h(InfiniteScrollView, {
59-
params: {
60-
order: "combined_id.asc",
61-
all_names: `ilike.*${input}*`,
62-
combined_id: `gt.0`,
63-
limit: PAGE_SIZE,
64-
},
66+
params,
6567
route: `${apiDomain}/api/pg/strat_combined`,
6668
getNextParams,
67-
initialData: res,
69+
initialItems: input === "" ? res : [],
6870
itemComponent: StratItem,
6971
hasMore,
72+
key: input
7073
})
7174
]);
7275
}

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3740,9 +3740,9 @@ __metadata:
37403740
languageName: node
37413741
linkType: hard
37423742

3743-
"@macrostrat/ui-components@npm:^4.3.1":
3744-
version: 4.3.1
3745-
resolution: "@macrostrat/ui-components@npm:4.3.1"
3743+
"@macrostrat/ui-components@npm:^4.3.2":
3744+
version: 4.3.2
3745+
resolution: "@macrostrat/ui-components@npm:4.3.2"
37463746
dependencies:
37473747
"@blueprintjs/core": "npm:^5.10.2"
37483748
"@blueprintjs/datetime2": "npm:^2.3.11"
@@ -3767,7 +3767,7 @@ __metadata:
37673767
peerDependencies:
37683768
react: ^16.8.6 || ^17 || ^18 || ^19
37693769
react-dom: ^16.8.6 || ^17 || ^18 || ^19
3770-
checksum: 10/0de3fd11c4f313afb679260419e23eab0bc5c115269cd8b4e7c55e8124b0708e8f468d164d163ce3dc018d0e09619bdf7448d367c2bc3a84e616f3f05e968180
3770+
checksum: 10/706819c270cdbc66f13e1bf290dba63cd9f8a360b7d537b869324a17e903188b981774149b75a8c87f2d8157a81074a26c52e7b6f991ea5a4bacdb9b566225f4
37713771
languageName: node
37723772
linkType: hard
37733773

@@ -3812,7 +3812,7 @@ __metadata:
38123812
"@macrostrat/style-system": "npm:^0.2.1"
38133813
"@macrostrat/svg-map-components": "npm:^1.0.4"
38143814
"@macrostrat/timescale": "npm:^2.2.1"
3815-
"@macrostrat/ui-components": "npm:^4.3.1"
3815+
"@macrostrat/ui-components": "npm:^4.3.2"
38163816
"@mdx-js/rollup": "npm:^2.3.0"
38173817
"@react-hook/size": "npm:^2.1.2"
38183818
"@supabase/postgrest-js": "npm:^1.18.1"

0 commit comments

Comments
 (0)