Skip to content

Commit

Permalink
fix(soffit-pwa): radio group options
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and AliMD committed Feb 6, 2023
1 parent b6f09c4 commit 984f2d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions uniquely/soffit-pwa/src/lottery-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {customElement, css, html, property, AlwatrSmartElement, state, LocalizeM
import {message} from '@alwatr/i18n';
import {commandTrigger} from '@alwatr/signal';

import type {RadioGroupOptions} from './tech-dep/radio-group.js';
import type {FormData} from './type.js';
import type {AlwatrTextField} from '@alwatr/ui-kit/text-field/text-field.js';

Expand All @@ -24,7 +25,9 @@ declare global {
export class AlwatrLotteryForm extends LocalizeMixin(AlwatrSmartElement) {
static formId = 'lottery';

@state() protected _radioGroupContent = {
@state() protected _radioGroupContent: RadioGroupOptions = {
name: 'activity',
form: (this.constructor as typeof AlwatrLotteryForm).formId,
title: message('activity_type'),
radioGroup: [
{label: message('tile_player')},
Expand Down Expand Up @@ -130,7 +133,7 @@ export class AlwatrLotteryForm extends LocalizeMixin(AlwatrSmartElement) {
stated
placeholder=${message('phone_number')}
></alwatr-text-field>
<alwatr-radio-group name="activity" .content=${this._radioGroupContent}></alwatr-radio-group>
<alwatr-radio-group .options=${this._radioGroupContent}></alwatr-radio-group>
<div class="button-container">
<alwatr-button outlined @click=${this.submit}>${message('send_form')}</alwatr-button>
<alwatr-button @click=${this.cancel}>${message('cancel')}</alwatr-button>
Expand Down

0 comments on commit 984f2d3

Please sign in to comment.