-
Notifications
You must be signed in to change notification settings - Fork 0
UI #4
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
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # packages/hyper-ui/src/components/assets-explorer/index.vue # packages/hyper-ui/src/components/frequently-traded-assets/index.vue # packages/hyper-ui/src/components/join-community/index.vue # packages/hyper-ui/src/components/popups/add-collection.vue # packages/hyper-ui/src/index.js
@@ -16,7 +16,7 @@ | |||
export default { | |||
props: { | |||
percent: { | |||
type: Number, | |||
type: [Number, 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.
This is bad. It should only accept one or the other
@@ -146,8 +146,8 @@ export default { | |||
default: 0 | |||
}, | |||
releaseDate: { | |||
type: String, | |||
default: new Date() | |||
type: [String, Date], |
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.
This is bad. It should only accept one or the other. It should be the responsibility of the user to pass the correct type.
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.
Ok. So what we should use for Date field?
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.
String. UI components should be flexible, they shouldn't enforce the way a date is displayed.
No description provided.