Skip to content

Commit

Permalink
chore: remove extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaZhem committed Aug 16, 2024
1 parent 128f28a commit db041fc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import {TuiButton, TuiTitle} from '@taiga-ui/core';
import {TuiAvatar} from '@taiga-ui/kit';

import type {TokenMinter} from '../minter.component';
import type {Token} from '../minter.component';

@Component({
standalone: true,
Expand All @@ -21,7 +21,7 @@ import type {TokenMinter} from '../minter.component';
})
export class MinterCreatedComponent {
@Input()
public token: TokenMinter = {
public token: Token = {
urlIcon: '',
token: '',
amount: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div tuiCell="l">
<tui-avatar
size="xl"
[src]="!openIcon && icon !== '' ? icon : '@tui.pencil'"
[src]="!openDialog && icon !== '' ? icon : '@tui.pencil'"
(click)="showDialog()"
/>
<div tuiTitle>
Expand Down Expand Up @@ -81,7 +81,7 @@
<ng-template
let-observer
[tuiDialogOptions]="{label: 'Edit logo', size: 's', closeable: false, dismissible: false}"
[(tuiDialog)]="openIcon"
[(tuiDialog)]="openDialog"
>
<p>URL of 256x256 pixel PNG image of token logo</p>
<tui-input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {TuiCell} from '@taiga-ui/layout';
import {TuiInputModule, TuiInputNumberModule} from '@taiga-ui/legacy';
import {of} from 'rxjs';

import type {TokenMinter} from '../minter.component';
import type {Token} from '../minter.component';

@Component({
standalone: true,
Expand Down Expand Up @@ -75,13 +75,13 @@ export class MinterDeployComponent {

protected readonly push = inject(TuiPushService);

protected openIcon = false;
protected openDialog = false;

@Output()
public readonly tokenChange = new EventEmitter<TokenMinter>();
public readonly tokenChange = new EventEmitter<Token>();

protected showDialog(): void {
this.openIcon = true;
this.openDialog = true;
}

protected onSubmit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {TuiCardLarge, TuiHeader} from '@taiga-ui/layout';
import {MinterCreatedComponent} from './minter-created/minter-created.component';
import {MinterDeployComponent} from './minter-deploy/minter-deploy.component';

export interface TokenMinter {
export interface Token {
urlIcon: string;
token: string;
amount: number;
Expand All @@ -30,5 +30,5 @@ export interface TokenMinter {
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class MinterComponent {
protected token: TokenMinter | null = null;
protected token: Token | null = null;
}

0 comments on commit db041fc

Please sign in to comment.