From 984f2d33c5c4ddf6d4d9017971fa51dd30417b6f Mon Sep 17 00:00:00 2001 From: "S. Amir Mohammad Najafi" Date: Mon, 6 Feb 2023 14:22:34 +0330 Subject: [PATCH] fix(soffit-pwa): radio group options --- uniquely/soffit-pwa/src/lottery-form.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/uniquely/soffit-pwa/src/lottery-form.ts b/uniquely/soffit-pwa/src/lottery-form.ts index 0ae14b805..18be8b92e 100644 --- a/uniquely/soffit-pwa/src/lottery-form.ts +++ b/uniquely/soffit-pwa/src/lottery-form.ts @@ -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'; @@ -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')}, @@ -130,7 +133,7 @@ export class AlwatrLotteryForm extends LocalizeMixin(AlwatrSmartElement) { stated placeholder=${message('phone_number')} > - +
${message('send_form')} ${message('cancel')}