Skip to content

Commit

Permalink
fix(soffit-pwa): cleanup form
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Jan 23, 2023
1 parent 104bdba commit e85b8c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions uniquely/soffit-pwa/src/lottery-form.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {customElement, AlwatrSmartElement, css, html, property} from '@alwatr/element';
import {serviceRequest} from '@alwatr/fetch';
import {UnicodeDigits} from '@alwatr/math';
import {validator, type JsonSchema} from '@alwatr/validator';

import {config} from './tech-dep/config.js';
Expand All @@ -11,7 +10,6 @@ import '@alwatr/ui-kit/text-field/text-field.js';
import '@alwatr/ui-kit/button/button.js';
import './tech-dep/radio-group.js';

const unicodeDigits = new UnicodeDigits('common', 'en');

declare global {
interface HTMLElementTagNameMap {
Expand Down Expand Up @@ -99,7 +97,6 @@ export class AlwatrLotteryForm extends AlwatrSmartElement {
)) {
data[inputElement.name] = inputElement.value;
}
data.phone = unicodeDigits.translate(String(data.phone).replaceAll(' ', ''));
return data;
}

Expand All @@ -108,7 +105,7 @@ export class AlwatrLotteryForm extends AlwatrSmartElement {
return html`
<alwatr-text-field
name="code"
type="text"
type="number"
outlined
active-outline
stated
Expand Down
1 change: 0 additions & 1 deletion uniquely/soffit-pwa/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"references": [
{"path": "../../core/router"},
{"path": "../../core/fetch"},
{"path": "../../core/math"},
{"path": "../../core/validator"},
{"path": "../../ui/element"},
{"path": "../../ui/ui-kit"},
Expand Down

0 comments on commit e85b8c9

Please sign in to comment.