Skip to content

Commit

Permalink
chore: update loginTypes in loginform [skip_storybook]
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaakher committed Aug 27, 2024
1 parent 273c19b commit 09c3d25
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 6 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.120

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.49.3

## 0.0.119

### 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.119",
"version": "0.0.120",
"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.3

### Patch Changes

- Update `loginTypes` in `LoginForm` to use `email_code`

## 0.49.2

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/components/blocks/auth/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type LoginFormTypes = {
/** Description text of error alert. */
errorText?: string;
/** Login identifier type user will use to log in. */
loginType?: "email" | "username" | "phone" | "link";
loginType?: "email" | "username" | "phone" | "email_link" | "email_code";
/** If true, the reset password option is hidden. */
withResetPassword?: boolean;
/** If true, the register option is hidden. */
Expand Down Expand Up @@ -156,7 +156,7 @@ export const LoginForm: FC<LoginFormTypes> = ({
{ message: texts?.phone?.invalid || "Phone Number Invalid" },
),
});
} else if (loginType === "link") {
} else if (loginType === "email_link") {
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 "link":
case "email_link":
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.2",
"version": "0.49.3",
"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.142

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.49.3

## 0.26.141

### 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.141",
"version": "0.26.142",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down

0 comments on commit 09c3d25

Please sign in to comment.