@@ -12,7 +12,7 @@ open Shared
1212type PageTab =
1313 | Home of Home.Model
1414 | Login of Login.Model
15- | Wishlist of Wishlist .Model
15+ | Wishlist of WishList .Model
1616 | NotFound
1717
1818type User =
@@ -24,7 +24,7 @@ type Model = { Page: PageTab; User: User }
2424type Msg =
2525 | HomePageMsg of Home.Msg
2626 | LoginPageMsg of Login.Msg
27- | WishlistMsg of Wishlist .Msg
27+ | WishlistMsg of WishList .Msg
2828 | UrlChanged of string list
2929 | OnSessionChange
3030 | Logout
@@ -68,7 +68,7 @@ let initFromUrl model url =
6868 match model.User with
6969 | User user ->
7070 let wishlistModel , wishlistMsg =
71- Wishlist .init ( wishListApi user.Token) user.UserName
71+ WishList .init ( wishListApi user.Token) user.UserName
7272
7373 let model = {
7474 Page = Wishlist wishlistModel
@@ -110,7 +110,7 @@ let update msg model =
110110 | User data -> data.Token
111111 | Guest -> " "
112112
113- let newModel , cmd = Wishlist .update ( wishListApi token) wishlistMsg wishlistModel
113+ let newModel , cmd = WishList .update ( wishListApi token) wishlistMsg wishlistModel
114114
115115 {
116116 Page = Wishlist newModel
@@ -179,7 +179,7 @@ let view model dispatch =
179179 match model.Page with
180180 | Home homeModel -> Home.view homeModel ( HomePageMsg >> dispatch)
181181 | Login loginModel -> Login.view loginModel ( LoginPageMsg >> dispatch)
182- | Wishlist wishlistModel -> Wishlist .view wishlistModel ( WishlistMsg >> dispatch)
182+ | Wishlist wishlistModel -> WishList .view wishlistModel ( WishlistMsg >> dispatch)
183183 | NotFound -> Html.div [ prop.text " Not Found" ]
184184 ]
185185 ]
0 commit comments