feat: Refactoring route declarations.
This commit is contained in:
@@ -22,10 +22,10 @@ enum Button {
|
||||
}
|
||||
|
||||
@Sendable
|
||||
static func close(id: IDKey, resetURL route: ViewRoute? = nil) -> some HTML<HTMLTag.button> {
|
||||
static func close(id: IDKey, resetURL route: SiteRoute.View? = nil) -> some HTML<HTMLTag.button> {
|
||||
close(
|
||||
id: id.description,
|
||||
resetURL: route != nil ? ViewRoute.router.path(for: route!) : nil
|
||||
resetURL: route != nil ? SiteRoute.View.router.path(for: route!) : nil
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user