Skip to content

Commit

Permalink
Add slots names for header and footer in the LoginPage component
Browse files Browse the repository at this point in the history
  • Loading branch information
silverbackdan committed Oct 14, 2024
1 parent 4602e0f commit 3f7df4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/templates/components/main/auth/LoginPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:error="error"
@submit="$emit('submit')"
>
<slot name="header" />
<InputField
v-model="credentials.username"
label="Username or Email"
Expand All @@ -21,7 +22,7 @@
autocomplete="current-password"
:required="true"
/>
<slot>
<slot name="footer">
<div class="cwa-flex cwa-items-center cwa-justify-between">
<AuthPageLink link-to="/" link-text="< Back to home" />
<AuthPageLink link-to="/forgot-password" link-text="Forgot your password?" />
Expand Down

0 comments on commit 3f7df4d

Please sign in to comment.