-
Notifications
You must be signed in to change notification settings - Fork 100
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
Type Doc components #207
Type Doc components #207
Conversation
@@ -18,8 +19,10 @@ | |||
|
|||
<Person @ignoreUnknown={{true}} @imgURL={{@avatar}} @email={{@owner}} /> | |||
|
|||
{{#if (and @isResult @snippet)}} |
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.
Need to investigate this. Glint thought @snippet
was undefined
despite it passing the if ... and
check.
web/app/components/doc/row.ts
Outdated
get productAreaName() { | ||
let productAreaName; | ||
|
||
// TODO: Convert this to a switch statement |
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 thought we had a helper for this logic somewhere 🤔
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.
Ah right, yeah we have one for the icon.
This one just needs to be cleaned up (and, separately, turned into its own helper).
Remove unnecessary code
fdd0ecf
to
414f5e0
Compare
* Type Doc components * Update row.ts * Update row.hbs Remove unnecessary code * Update row component
Adds types to the Doc components.