Skip to content

Commit 7dc9a9f

Browse files
Replace RoutesFilter with BetterList
1 parent eaae4ba commit 7dc9a9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/mountains/RoutesFilter.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import fragment from '../../stores/fragment'
33
import mountains, { Mountain, Route } from '../../stores/mountains'
44
import { allRoutes } from '../../utils/routes'
5-
import VirtualList from '../VirtualList.svelte'
65
import SortyBy from '../SortyBy.svelte'
76
import {
87
direction,
@@ -23,6 +22,7 @@
2322
import Grade from './Grade.svelte'
2423
import { parseGrade } from '../../utils/grade'
2524
import { onMount } from 'svelte'
25+
import BetterList from '../BetterList.svelte'
2626
2727
const viewMountain = (mountain: Mountain, route: Route) => {
2828
fragment.update((value) => ({
@@ -123,7 +123,7 @@
123123
(showing {filteredRoutes.length} of {routes.length} routes)
124124
</div>
125125
<div class="flex flex-col gap-2 -mx-4 -mb-4 min-h-0 flex-1">
126-
<VirtualList items={sorted} let:item bind:scrollPos={$scrollPos}>
126+
<BetterList items={sorted} let:item bind:scrollPos={$scrollPos}>
127127
<div
128128
class="cursor-pointer px-4 py-1"
129129
on:keyup={(e) => {
@@ -150,7 +150,7 @@
150150
</div>
151151
</Card>
152152
</div>
153-
</VirtualList>
153+
</BetterList>
154154
</div>
155155
</div>
156156

0 commit comments

Comments
 (0)