Skip to content

Commit

Permalink
fix: login type fields in login form [skip_storybook]
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaakher committed Aug 27, 2024
1 parent 09c3d25 commit d5ebb59
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 5 deletions.
7 changes: 7 additions & 0 deletions apps/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# hawa-docs

## 0.0.121

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.49.4

## 0.0.120

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawa-docs",
"version": "0.0.120",
"version": "0.0.121",
"private": true,
"scripts": {
"dev": "next dev -p 3001",
Expand Down
6 changes: 6 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sikka/hawa

## 0.49.4

### Patch Changes

- Display email field in `LoginForm` when logintype is `email_code`

## 0.49.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/blocks/auth/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const LoginForm: FC<LoginFormTypes> = ({
{ message: texts?.phone?.invalid || "Phone Number Invalid" },
),
});
} else if (loginType === "email_link") {
} else if (loginType === "email_link" || loginType === "email_code") {
formSchema = z.object({
email: z
.string({ required_error: texts?.email?.required || "Email Required" })
Expand Down Expand Up @@ -323,7 +323,7 @@ export const LoginForm: FC<LoginFormTypes> = ({
/>
</>
);
case "email_link":
case "email_link" || "email_code":
return (
<>
<Controller
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sikka/hawa",
"version": "0.49.3",
"version": "0.49.4",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down
7 changes: 7 additions & 0 deletions packages/storybook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# hawa-storybook

## 0.26.143

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.49.4

## 0.26.142

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawa-storybook",
"version": "0.26.142",
"version": "0.26.143",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down

0 comments on commit d5ebb59

Please sign in to comment.