Skip to content

Commit

Permalink
fix(icon-box): target
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Jan 19, 2023
1 parent 9ca6966 commit e108661
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ui/ui-kit/src/card/icon-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type IconBoxContent = {
description?: string;
href?: string;
flipRtl?: boolean;
target?: 'download' | 'blank';
target?: 'download' | '_blank';
};

/**
Expand Down Expand Up @@ -96,7 +96,7 @@ export class AlwatrIconBox extends AlwatrCard {
override render(): unknown {
this._logger.logMethod('render');
if (this.content == null) return nothing;
const target = this.content.target === 'blank' ? '_blank' : undefined;
const target = this.content.target !== 'download' ? this.content.target : undefined;

return html`
<a
Expand Down
6 changes: 3 additions & 3 deletions uniquely/soffit-pwa/src/page-home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const menuList: Array<IconBoxContent & {wide?: boolean}> = [
headline: 'قرعه‌کشی میدکس',
description: 'فرم شرکت در قرعه‌کشی میدکس',
href: 'https://formafzar.com/form/fd8lo',
target: 'blank',
target: '_blank',
},
{
icon: 'cloud-download-outline',
Expand All @@ -39,14 +39,14 @@ const menuList: Array<IconBoxContent & {wide?: boolean}> = [
headline: 'اینستاگرام',
description: 'کانال اینستاگرام بازرگانی سافیت',
href: 'https://instagram.com/soffit.co',
target: 'blank',
target: '_blank',
},
{
icon: 'send-outline',
headline: 'کانال تلگرام',
description: 'کانال تلگرام بازرگانی سافیت',
href: 'https://t.me/soffitcompany',
target: 'blank',
target: '_blank',
},
{
icon: 'call-outline',
Expand Down

0 comments on commit e108661

Please sign in to comment.