-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IOPLT-133] Implements NumberPad component #127
Conversation
import { IOIconSizeScale, IOIcons } from "../icons"; | ||
import { NumberButton } from "./NumberButton"; | ||
|
||
type BiometricAuthProps = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this type be just :
type BiometricAuthProps = {
biometricType?: BiometricsValidType;
onBiometricPress?: () => void;
biometricAccessibilityLabel?: string;
};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the union type here defined we can handle the constraint of having all three props none of them defined at the same time: if we have a biometric option the tercet must be valorized correctly
|
||
type ButtonType = "biometric" | "delete"; | ||
|
||
const RowButtons = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this component be extracted as a standalone, reusable component, separate from the NumberPad?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this should be only a local component avoiding code duplication to repeat button lines. Do you see any other possible usage of the component? 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I can see from the simulator (and now from the attached video), the component does not seem to respect the experimental design mode (in the disabled state)
fixed in d684d67 |
Short description
This PR creates the new NumberPad component
List of changes proposed in this pull request
NumberPad
componentHow to test
Check related screen in example app
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-11-02.at.15.38.31.mp4