feat: Refactoring route declarations.
This commit is contained in:
@@ -62,7 +62,7 @@ extension Float where B == DefaultCloseButton {
|
||||
init(
|
||||
id: String = "float",
|
||||
shouldDisplay: Bool,
|
||||
resetURL route: ViewRoute? = nil,
|
||||
resetURL route: SiteRoute.View? = nil,
|
||||
@HTMLBuilder body: () -> C
|
||||
) {
|
||||
self.init(
|
||||
@@ -71,7 +71,7 @@ extension Float where B == DefaultCloseButton {
|
||||
body: body,
|
||||
closeButton: { DefaultCloseButton(
|
||||
id: id,
|
||||
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