From 7248e1b727b778f1075c6afa64e798693ed2dd3e Mon Sep 17 00:00:00 2001 From: Sergey Andrievskiy Date: Sat, 22 Jun 2019 00:15:55 +0300 Subject: [PATCH] fix: remove unused pipe --- src/app/@theme/pipes/eva-icons.pipe.ts | 50 -------------------------- 1 file changed, 50 deletions(-) delete mode 100644 src/app/@theme/pipes/eva-icons.pipe.ts diff --git a/src/app/@theme/pipes/eva-icons.pipe.ts b/src/app/@theme/pipes/eva-icons.pipe.ts deleted file mode 100644 index 91d3de04..00000000 --- a/src/app/@theme/pipes/eva-icons.pipe.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @license - * Copyright Akveo. All Rights Reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ - -import { DomSanitizer } from '@angular/platform-browser'; -import { Pipe, PipeTransform } from '@angular/core'; -import { icons } from 'eva-icons'; - -@Pipe({ name: 'eva' }) -export class EvaIconsPipe implements PipeTransform { - - private defaultOptions = { - height: 24, - width: 24, - fill: 'inherit', - animationHover: true, - animationInfinity: false, - }; - - constructor(private sanitizer: DomSanitizer) {} - - transform(icon: string, - options: { - height: number; - width: number; - fill: string; - animationType?: string; - animationHover?: boolean; - animationInfinity?: boolean; - }, - ) { - const mergedOptions = { - ...this.defaultOptions, - ...options, - }; - const { width, height, fill, animationType, animationHover, animationInfinity } = mergedOptions; - const animation = animationType ? - { type: animationType, hover: animationHover, infinite: animationInfinity } : - null; - - return this.sanitizer.bypassSecurityTrustHtml(icons[icon].toSvg({ - width, - height, - fill, - animation, - })); - } -}