refactor: Update Login component to improve conditional rendering of login and registration cards
- Modify Login.vue to use v-if and v-else directives for better control over the display of the login and registration cards based on the showRegister state.
This commit is contained in:
parent
0c337f5dc6
commit
332ae91fb7
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@
|
|||
</div>
|
||||
|
||||
<!-- Login Card -->
|
||||
<Card class="w-full max-w-md">
|
||||
<Card v-if="!showRegister" class="w-full max-w-md">
|
||||
<CardHeader>
|
||||
<CardTitle class="text-center">Sign In</CardTitle>
|
||||
<CardDescription class="text-center">
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
</Card>
|
||||
|
||||
<!-- Register Card -->
|
||||
<Card v-if="showRegister" class="w-full max-w-md">
|
||||
<Card v-else class="w-full max-w-md">
|
||||
<CardHeader>
|
||||
<CardTitle class="text-center">Create Account</CardTitle>
|
||||
<CardDescription class="text-center">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue