From 44bdf6dc5002f72b9f2b5f58275730dc87e7327a Mon Sep 17 00:00:00 2001 From: Bart van Dijk Date: Thu, 25 Jan 2024 15:58:41 +0100 Subject: [PATCH] Update user-auth.md I worked through the tutorial and got error messages about Layouts.Layout missing an argument. I got real confused since I was following the tutorial and copy-pasted a couple of times, until I thought of simply adding `Msg`. This solved it for me, so I thought I'd throw it in a PR. --- docs/guide/user-auth.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guide/user-auth.md b/docs/guide/user-auth.md index 8c55a5d..c56ce89 100644 --- a/docs/guide/user-auth.md +++ b/docs/guide/user-auth.md @@ -2160,7 +2160,7 @@ page user shared route = |> Page.withLayout (toLayout user) -toLayout : Auth.User -> Model -> Layouts.Layout +toLayout : Auth.User -> Model -> Layouts.Layout Msg toLayout user model = Layouts.Sidebar { title = "Dashboard" @@ -2195,7 +2195,7 @@ page user shared route = |> Page.withLayout (toLayout user) -toLayout : Auth.User -> Model -> Layouts.Layout +toLayout : Auth.User -> Model -> Layouts.Layout Msg toLayout user model = Layouts.Sidebar { title = "Dashboard" @@ -2224,7 +2224,7 @@ page user shared route = |> Page.withLayout (toLayout user) -toLayout : Auth.User -> Model -> Layouts.Layout +toLayout : Auth.User -> Model -> Layouts.Layout Msg toLayout user model = Layouts.Sidebar { title = "Profile"