Skip to content

Commit

Permalink
chore: minor fixes in CodeConfirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaakher committed Aug 21, 2024
1 parent 0d242d7 commit 3e8f064
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 8 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.116

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.48.2

## 0.0.115

### 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.115",
"version": "0.0.116",
"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.48.2

### Patch Changes

- Add space before identifier in `CodeConfirmation`

## 0.48.1

### Patch Changes
Expand Down
8 changes: 5 additions & 3 deletions packages/components/blocks/auth/CodeConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ export const CodeConfirmation: FC<TConfirmation> = ({ codeLength = 6, ...props }
<div className="hawa-text-lg hawa-font-bold">
{props.texts?.checkYourIdentifier || "Please check your phone"}
</div>
<div className="hawa-text-muted-foreground">
<span>{props.texts?.weSentCode || "We've sent a code to "}</span>
<span>{props.identifier}</span>
<div className="hawa-text-muted-foreground hawa-flex hawa-flex-row">
<span>
{`${props.texts?.weSentCode} ` || `We've sent a code to `}
<span dir="ltr">{props.identifier}</span>
</span>
</div>
</div>
<form
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.48.1",
"version": "0.48.2",
"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.138

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.48.2

## 0.26.137

### 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.137",
"version": "0.26.138",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Default: Story = {
showError={args.showError}
{...args}
texts={{
checkYourPhone: t("checkYourPhone"),
checkYourIdentifier: t("checkYourPhone"),
weSentCode: t("weSentCode"),
didntGetCode: t("didntGetCode"),
resendCode: t("resendCode"),
Expand All @@ -37,11 +37,14 @@ export const Default: Story = {
confirm: t("confirm"),
seconds: t("seconds"),
}}

/>
</div>
);
},
args: {},
args: {
identifier:"+966531045453"
},
argTypes: {
onConfirm: { action: "onConfirm" },
onCancel: { action: "onCancel" },
Expand Down

0 comments on commit 3e8f064

Please sign in to comment.