Skip to content

Commit

Permalink
chore: remove unused mat-raised-button directives
Browse files Browse the repository at this point in the history
  • Loading branch information
jahow committed Nov 21, 2024
1 parent 7ddacf4 commit 79d4da8
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion libs/ui/elements/src/lib/api-card/api-card.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
'py-2 px-4 rounded-r-md bg-gray-400 hover:bg-gray-600 focus:bg-gray-800 text-white':
displayText
}"
mat-raised-button
[matTooltip]="
!currentlyActive
? ('record.metadata.api.form.openForm' | translate)
Expand Down
2 changes: 0 additions & 2 deletions libs/ui/elements/src/lib/api-card/api-card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { TranslateModule } from '@ngx-translate/core'
import { MatTooltipModule } from '@angular/material/tooltip'
import { NgIcon, provideIcons } from '@ng-icons/core'
import { matMoreHoriz } from '@ng-icons/material-icons/baseline'
import { MatButtonModule } from '@angular/material/button'

@Component({
selector: 'gn-ui-api-card',
Expand All @@ -29,7 +28,6 @@ import { MatButtonModule } from '@angular/material/button'
TranslateModule,
MatTooltipModule,
NgIcon,
MatButtonModule,
],
viewProviders: [
provideIcons({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
</h4>
<div>
<button
mat-raised-button
[matTooltip]="'tooltip.url.open' | translate"
matTooltipPosition="above"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { CatalogRecord } from '@geonetwork-ui/common/domain/model/record'
import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
import { RouterLink } from '@angular/router'
import { MatTooltipModule } from '@angular/material/tooltip'
import { MatButtonModule } from '@angular/material/button'
import { NgIcon, provideIcons } from '@ng-icons/core'
import { TranslateModule } from '@ngx-translate/core'
import { matOpenInNew } from '@ng-icons/material-icons/baseline'
Expand All @@ -17,7 +16,6 @@ import { matOpenInNew } from '@ng-icons/material-icons/baseline'
ThumbnailComponent,
RouterLink,
MatTooltipModule,
MatButtonModule,
NgIcon,
TranslateModule,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
'py-2 px-4 rounded-r-md bg-gray-400 hover:bg-gray-600 focus:bg-gray-800 text-white':
displayText
}"
mat-raised-button
[matTooltip]="tooltipText"
matTooltipPosition="above"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
import { CommonModule } from '@angular/common'
import { MatButtonModule } from '@angular/material/button'
import { MatTooltipModule } from '@angular/material/tooltip'
import { NgIcon, provideIcons } from '@ng-icons/core'
import { matContentCopy } from '@ng-icons/material-icons/baseline'
Expand All @@ -11,7 +10,7 @@ import { matContentCopy } from '@ng-icons/material-icons/baseline'
styleUrls: ['./copy-text-button.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [CommonModule, MatButtonModule, MatTooltipModule, NgIcon],
imports: [CommonModule, MatTooltipModule, NgIcon],
viewProviders: [provideIcons({ matContentCopy })],
})
export class CopyTextButtonComponent {
Expand Down

0 comments on commit 79d4da8

Please sign in to comment.