|
|
|
@ -48,7 +48,7 @@ export async function getServerSideProps(context) {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
user: JSON.parse(JSON.stringify(user)),
|
|
|
|
user: JSON.parse(JSON.stringify(user)),
|
|
|
|
userGains,
|
|
|
|
userGains: JSON.parse(JSON.stringify(userGains)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -223,11 +223,13 @@ const MonCompte = (props: Props) => {
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
|
{props.userGains.map((info: any, index: number) => {
|
|
|
|
{props.userGains.map((info: any, index: number) => {
|
|
|
|
|
|
|
|
console.log('ii', info);
|
|
|
|
|
|
|
|
|
|
|
|
return <tr>
|
|
|
|
return <tr>
|
|
|
|
<th scope="row">{++index}</th>
|
|
|
|
<th scope="row">{++index}</th>
|
|
|
|
<td>{info.codeCadeau}</td>
|
|
|
|
<td>{info.codeCadeau}</td>
|
|
|
|
<td>{info.produit.nomProduit}</td>
|
|
|
|
<td>{info.produit.nomProduit}</td>
|
|
|
|
<td>{!info.produit.retrait ? '❌ déja récupéré' : '✔️ venir me chercher !'}</td>
|
|
|
|
<td>{info.retrait ? '❌ déja récupéré' : '✔️ venir me chercher !'}</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
|