mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-21 12:49:23 +08:00
`discourse-common` was created in the past to share logic between the 'wizard' app and the main 'discourse' app. Since then, the wizard has been consolidated into the main app, so the separation of `discourse-common` is no longer useful. This commit moves `discourse-common/helpers/*` into `discourse/helpers/*`, removes `discourse-common` from the Ember resolver config, and adds shims for the imports.
23 lines
570 B
Text
Vendored
23 lines
570 B
Text
Vendored
import RadioButton from "discourse/components/radio-button";
|
|
import dIcon from "discourse/helpers/d-icon";
|
|
import { i18n } from "discourse-i18n";
|
|
|
|
const InstallThemeItem = <template>
|
|
<div class="install-theme-item">
|
|
<RadioButton
|
|
@name="install-items"
|
|
@id={{@value}}
|
|
@value={{@value}}
|
|
@selection={{@selection}}
|
|
/>
|
|
<label class="radio" for={{@value}}>
|
|
{{#if @showIcon}}
|
|
{{dIcon "plus"}}
|
|
{{/if}}
|
|
{{i18n @label}}
|
|
</label>
|
|
{{dIcon "caret-right"}}
|
|
</div>
|
|
</template>;
|
|
|
|
export default InstallThemeItem;
|