Skip to content

Commit

Permalink
fix: remove empty lifecycle method
Browse files Browse the repository at this point in the history
  • Loading branch information
oriolagobat committed Jan 15, 2024
1 parent 9160623 commit 053ddd3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/src/app/components/banner-ad/banner-ad.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- banner-ad.component.html -->

<div class="banner-ad-container">
<img src="./icons/ad.png" alt="Banner Ad" class="banner-ad-image">
<img src="./icons/ad.png" alt="Banner Ad" class="banner-ad-image" />
</div>
4 changes: 2 additions & 2 deletions app/src/app/components/banner-ad/banner-ad.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ describe('BannerAdComponent', () => {

beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ BannerAdComponent ],
imports: [IonicModule.forRoot()]
declarations: [BannerAdComponent],
imports: [IonicModule.forRoot()],
}).compileComponents();

fixture = TestBed.createComponent(BannerAdComponent);
Expand Down
14 changes: 6 additions & 8 deletions app/src/app/components/banner-ad/banner-ad.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-banner-ad',
templateUrl: './banner-ad.component.html',
styleUrls: ['./banner-ad.component.scss']
styleUrls: ['./banner-ad.component.scss'],
})
export class BannerAdComponent implements OnInit {

constructor() { }

ngOnInit(): void {
}
export class BannerAdComponent {
constructor() {}

onButtonClick(): void {
// Handle button click event (you can add your logic here)
console.log('Button clicked! Redirect to the product page or perform other actions.');
console.log(
'Button clicked! Redirect to the product page or perform other actions.',
);
}
}

0 comments on commit 053ddd3

Please sign in to comment.