mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-23 19:47:43 +08:00
The previous `createPreviewComponent` implementation was problematic for template colocation. We can achieve the same result using normal component class inheritance.
8 lines
No EOL
169 B
Handlebars
Vendored
8 lines
No EOL
169 B
Handlebars
Vendored
<div class="wizard-container__preview">
|
|
<canvas
|
|
width={{this.elementWidth}}
|
|
height={{this.elementHeight}}
|
|
style={{this.canvasStyle}}
|
|
>
|
|
</canvas>
|
|
</div> |