Skip to content

Commit dc896ac

Browse files
committed
Use Details
1 parent 9ee55ec commit dc896ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/App/Views/PackageController/GetRoute.Model+ext.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,10 @@ extension API.PackageController.GetRoute.Model {
399399
}
400400

401401
func customCollectionsItem() -> Node<HTML.ListContext> {
402-
let collections: [CustomCollection] = [.init(.init(name: "Collection 1", url: URL(string: "https://github.com/foo/bar/list1.json")!)),
403-
.init(.init(name: "Collection 2", url: URL(string: "https://github.com/foo/bar/list2.json")!))]
402+
let collections: [CustomCollection.Details] = [
403+
.init(name: "Collection 1", url: URL(string: "https://github.com/foo/bar/list1.json")!),
404+
.init(name: "Collection 2", url: URL(string: "https://github.com/foo/bar/list2.json")!)
405+
]
404406
return .li(
405407
.class("custom-collections"),
406408
.forEach(collections, { collection in

0 commit comments

Comments
 (0)