-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Carta Giovani Nazionale): [#176959185] Introduces the screen to …
…check on Merchant detail conventioned to CGN (#2886) * [#177059013] Implements Discount item for Merchant detail screen * [#177059013] minor fixes on discountItem * [#176959185] Adds the CGN MErchant detail screen component * [#177059013] refactoring * [#177059013] improve * [#177059013] fix UI styles and composition * [#176959185] from string to number Co-authored-by: Matteo Boschi <[email protected]>
- Loading branch information
1 parent
a211fa5
commit db50f36
Showing
10 changed files
with
269 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
export type TmpDiscountType = { | ||
category: string; | ||
title: string; | ||
description: string; | ||
validityDescription: string; | ||
discountCode?: string; | ||
conditions: string; | ||
value: number; | ||
}; | ||
|
||
export type TmpMerchantDetail = { | ||
name: string; | ||
cover: string; | ||
location: string; | ||
url: string; | ||
discounts: ReadonlyArray<TmpDiscountType>; | ||
description: string; | ||
availableServices: string; | ||
workingHours?: string; | ||
}; | ||
|
||
export const sampleMerchant: TmpMerchantDetail = { | ||
name: "Nome teatro", | ||
url: "https://google.com", | ||
cover: "https://picsum.photos/343/230", | ||
location: "Via Roma 1, 00000, Roma", | ||
description: | ||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sollicitudin dolor ut lacus faucibus lobortis.", | ||
availableServices: | ||
"Tecnologia, Libri, Casa, Cura della persona, Abbigliamento, Giochi, Auto e Moto", | ||
workingHours: "Lun, Mar, Mer, Gio, Dom 9:00 - 23:00 Ven, Sab 9:00 - 00:00", | ||
discounts: [ | ||
{ | ||
category: "test category", | ||
title: "Abbonamento stagione danza", | ||
description: | ||
"Acquista un abbonamento per tutti gli spettacoli di danza previsti per la stagione 2021-22.", | ||
validityDescription: "Dal 15 Marzo al 15 Maggio 2021.", | ||
discountCode: "123 456 789 10", | ||
conditions: | ||
"Lo sconto del 30% si applica sull’acquisto di un solo abbonamento. L’offerta è nominale e non è rimborsabile.", | ||
value: 30 | ||
}, | ||
{ | ||
category: "test category 2", | ||
title: "Abbonamento stagione danza", | ||
description: | ||
"Acquista un abbonamento per tutti gli spettacoli di danza previsti per la stagione 2021-22.", | ||
validityDescription: "Dal 15 Marzo al 15 Maggio 2021.", | ||
conditions: | ||
"Lo sconto del 30% si applica sull’acquisto di un solo abbonamento. L’offerta è nominale e non è rimborsabile.", | ||
value: 30 | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.