DEV: Update dynamic component hbs syntax (#29445)

The block form of `{{#component` is not supported by Glint tooling. They recommend using this `{{#let`-based syntax to achieve the same result
This commit is contained in:
David Taylor 2024-10-29 11:11:10 +00:00 committed by GitHub
parent 336d98732d
commit b364a13ad3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,11 +55,17 @@
{{/each}}
</div>
{{else}}
{{#component
this.reviewableComponent reviewable=this.reviewable tagName=""
{{#let
(component
this.reviewableComponent reviewable=this.reviewable tagName=""
)
as |ReviewableComponent|
}}
<ReviewableScores @reviewable={{this.reviewable}} @tagName="" />
{{/component}}
{{! template-lint-disable no-shadowed-elements }}{{! (seems to be a false positive) }}
<ReviewableComponent>
<ReviewableScores @reviewable={{this.reviewable}} @tagName="" />
</ReviewableComponent>
{{/let}}
{{/if}}
</div>