-
Notifications
You must be signed in to change notification settings - Fork 16
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
2031: Refactor getDate method #2512
Conversation
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.
Nice refactoring, thanks :)
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.
I'm getting the following error when running yarn start
in /web:
WARNING in ../../api-client/src/index.ts 61:0-68
export 'DateIcon' (reexported as 'DateIcon') was not found in './models/DateModel' (possible exports: default)
Thanks for testing again, fixed it. |
Nice! Tested in emulated iOS and Firefox |
Short description
The getDate method has duplicate code in web and native. I moved the shared logic of choosing the right icon to the api-client. Only selecting the platform specific icons stays in web and native.