Skip to content

Feature/otp#111

Open
BohunD wants to merge 23 commits intodevfrom
feature/otp
Open

Feature/otp#111
BohunD wants to merge 23 commits intodevfrom
feature/otp

Conversation

@BohunD
Copy link
Contributor

@BohunD BohunD commented May 15, 2025

telegram-cloud-photo-size-2-5271632250997435621-y

@mkhotych
Copy link
Collaborator

image

VMihalatiuk
VMihalatiuk previously approved these changes Oct 7, 2025
private const val DEFAULT_OTP_LENGTH = 6

@Composable
fun OTPContainerWithError(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А нельзя как-то контейнер перегрузить один, чтобы error был опциональной частью основного контейнера?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Помилка не у всіх кейсах потрібна, наприклад на Wain не використовується цей overload. При цьому тоді можна буде застосувати Modifier тільки до Column, і також для помилки потрібно буде прокидувати окремо параметр з error-повідомленням і окремо isError

}

@Composable
fun OTPContainer(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Предлагаю этот контейнер сделать private, чтобы не создавать неопределенность у разработчика, который будет это использовать

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Може додати Base приставку? Щоб якщо, то його все ж можна було використати

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай первую версию без Base, а если будет необходимость, то потом сделают update core-а

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ок, зробив private

keyboardOptions = keyboardOptions,
keyboardActions = keyboardActions,
cellContent = {
OTPCellView(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OTPCellView -> OTPCell/OTPCellContainer

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Перейменував

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants