From 58f41c089a90cf640f0ea0cd7904ece7b6b6a780 Mon Sep 17 00:00:00 2001 From: Stanislav Romanov Date: Sat, 10 Sep 2022 17:27:41 +0300 Subject: [PATCH] Add block to button --- app/components/button.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/button.js b/app/components/button.js index 0235ec4..e798b97 100644 --- a/app/components/button.js +++ b/app/components/button.js @@ -21,6 +21,7 @@ export const iconSizes = { export const styles = { default: 'border rounded', primary: 'border rounded text-primary border-primary', + link: '', }; export default class ButtonComponent extends Component { @@ -41,7 +42,10 @@ export default class ButtonComponent extends Component { {{else if @icon}} <@icon @size={{get iconSizes this.size}} /> {{/if}} - {{#if this.text}} + + {{#if (has-block)}} + {{yield}} + {{else if this.text}} {{this.text}} {{/if}}