diff --git a/src/app/core/layout/store-layout/store-footer/store-footer.component.html b/src/app/core/layout/store-layout/store-footer/store-footer.component.html
index b672e3a..87bdd78 100644
--- a/src/app/core/layout/store-layout/store-footer/store-footer.component.html
+++ b/src/app/core/layout/store-layout/store-footer/store-footer.component.html
@@ -44,11 +44,14 @@
- @for (social of socialLinks; track social.label) {
-
-
- {{ social.label }}
-
+ @for (social of socialMedia; track social.code) {
+
}
diff --git a/src/app/core/layout/store-layout/store-footer/store-footer.component.ts b/src/app/core/layout/store-layout/store-footer/store-footer.component.ts
index febc6eb..7a3e8a5 100644
--- a/src/app/core/layout/store-layout/store-footer/store-footer.component.ts
+++ b/src/app/core/layout/store-layout/store-footer/store-footer.component.ts
@@ -1,24 +1,21 @@
import { Component, Input } from '@angular/core';
+import { SocialMedia } from '../../../services/tenant.interface';
+import { SocialMediaComponent } from '../../../../shared/components/social-media/social-media.component';
export type StoreFooterSection = {
heading: string;
links: string[];
};
-export type StoreSocialLink = {
- label: string;
- iconClass: string;
-};
-
@Component({
selector: 'app-store-footer',
- imports: [],
+ imports: [SocialMediaComponent],
templateUrl: './store-footer.component.html',
- styleUrl: './store-footer.component.scss'
+ styleUrl: './store-footer.component.scss',
})
export class StoreFooterComponent {
@Input({ required: true }) currentYear = new Date().getFullYear();
@Input({ required: true }) footerSections: StoreFooterSection[] = [];
- @Input({ required: true }) socialLinks: StoreSocialLink[] = [];
+ @Input({ required: true }) socialMedia: SocialMedia[] = [];
@Input() logoUrl: string | null = null;
}
diff --git a/src/app/core/layout/store-layout/store-layout.component.html b/src/app/core/layout/store-layout/store-layout.component.html
index bb98274..6ce6352 100644
--- a/src/app/core/layout/store-layout/store-layout.component.html
+++ b/src/app/core/layout/store-layout/store-layout.component.html
@@ -38,7 +38,7 @@