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 dd00bf3..50e34c2 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 @@ -22,14 +22,18 @@
-
- - Av. San Lorenzo 1542, Rosario -
-
- - 54 9 (0341) 6658247 -
+ @if (address) { +
+ + {{ address }} +
+ } + @if (phone) { +
+ + {{ phone }} +
+ }
diff --git a/src/app/core/layout/store-layout/store-layout.component.spec.ts b/src/app/core/layout/store-layout/store-layout.component.spec.ts index d70343b..cd2209d 100644 --- a/src/app/core/layout/store-layout/store-layout.component.spec.ts +++ b/src/app/core/layout/store-layout/store-layout.component.spec.ts @@ -28,6 +28,8 @@ const tenant: Tenant = { codigo: 'test', nombre: 'Test Tenant', dominio: 'localhost', + address: 'Calle Test 123, Rosario', + phone: '+54 341 555 1234', primary_color: '#6376F3', secondary_color: '#A0A0A0', danger_color: '#FF8888', @@ -299,6 +301,12 @@ describe('StoreLayoutComponent', () => { expect(compiled.querySelector('.fa-whatsapp')).not.toBeNull(); expect(compiled.querySelector('.fa-facebook')).not.toBeNull(); expect(compiled.querySelector('.fa-linkedin-in')).not.toBeNull(); + expect(compiled.querySelector('.store-layout__contact-details')?.textContent).toContain( + tenant.address, + ); + expect(compiled.querySelector('.store-layout__contact-details')?.textContent).toContain( + tenant.phone, + ); }); it('navigates to search results when the search button is clicked', () => { diff --git a/src/app/core/services/tenant.interface.ts b/src/app/core/services/tenant.interface.ts index 21c1c11..6255c8c 100644 --- a/src/app/core/services/tenant.interface.ts +++ b/src/app/core/services/tenant.interface.ts @@ -113,6 +113,8 @@ export interface Tenant { dominio: string; base_path?: string; site_title?: string | null; + address?: string | null; + phone?: string | null; favicon?: string | null; primary_color: string; secondary_color: string;