Skip to content
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

fix: use the old icons importer for now [MDS-41] #234

Merged
merged 13 commits into from
Apr 7, 2022
Merged

Conversation

alexisdevtailor
Copy link
Contributor

No description provided.

</#CodePreview>
</:code>
</ExampleAndCode>

<ExampleAndCode id="currency_16" class="mt-4">
<:example>
<IconJapaneseYen font_size="10rem" />
<Currency name="icon_japanese_yen" font_size="10rem" />
Copy link
Collaborator

@theycallmehero theycallmehero Apr 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good job! One note / question:

Currently Moon has agremeent, that Icons are named as separate components - so if some component goes missing, client has compile time error that needs to be fixed.

Does this approach has this validation?

Maybe you can propose some solution, that would have compile time check, that if logo/currency/icon is being used, but it does not exist, then instant feedback available. (Surface syntax has prop syntax key "values: [:list, :of, :supported, :values]" but maybe there is some alternative also?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 😁 Separate modules for icons are also generated. So they can also use that approach if compile time error detection is needed.

Copy link
Collaborator

@theycallmehero theycallmehero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! Very good!

Thank you! (heart)

@theycallmehero theycallmehero merged commit c1c9436 into main Apr 7, 2022
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