Skip to content

Conversation

@highruned
Copy link
Collaborator

No description provided.

# 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
props: {
percent: {
type: Number,
type: [Number, String],
Copy link
Collaborator Author

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

releaseDate: {
type: String,
default: new Date()
type: [String, Date],
Copy link
Collaborator Author

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.

Copy link
Contributor

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?

Copy link
Collaborator Author

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.

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.

3 participants