Skip to content

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

UI #4

wants to merge 8 commits into from

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
@@ -16,7 +16,7 @@
export default {
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

@@ -146,8 +146,8 @@ export default {
default: 0
},
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.

2 participants