Merge branch 'master' into develop
This commit is contained in:
commit
a1388c6962
23 files changed
+9209
-156
No files matched your search
+2
-17
@@ -155,6 +155,7 @@ const Index = () => {
|
||||
<div className="form-group mx-auto my-3 w-100">
|
||||
<input type="text"
|
||||
id="codeInput" aria-describedby="codeHelp"
|
||||
data-testid="codeInput"
|
||||
placeholder="A293049430..."
|
||||
minLength={10}
|
||||
maxLength={10}
|
||||
@@ -166,23 +167,18 @@ const Index = () => {
|
||||
<div className="invalid-feedback alert alert-danger">{errors.codeCadeau?.message}</div>
|
||||
</div>
|
||||
<div className="form-group mx-auto my-3 w-100">
|
||||
<button type="submit" className={`${style['aButton']} btn btn-primary`}>Découvrir mon cadeau !</button>
|
||||
<button type="submit" data-testid="submit" className={`${style['aButton']} btn btn-primary`}>Découvrir mon cadeau !</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>}
|
||||
|
||||
|
||||
{winAnimation && <div className="col-12 align-items-center d-flex flex-column">
|
||||
|
||||
<div className={`${style['cadeau-bloc-content']} col-12 col-md-6`} onClick={() => setWinAnimation(false)}
|
||||
>
|
||||
<div className={`${style['cadeau-bloc']}`}>
|
||||
<h1>Vous avez gagnez : un {response.winProduct.nomProduit.toLowerCase()} !</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={`${style['imageWrapper']}`}>
|
||||
<Image
|
||||
src={arrowUp}
|
||||
@@ -193,22 +189,11 @@ const Index = () => {
|
||||
className={`${style['rotatingImage']}`}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div className="row">
|
||||
<button onClick={getCadeau} className={`${style['aButton']} btn btn-primary`}>Voir mes cadeaux !</button>
|
||||
<button onClick={() => setWinAnimation(false)} className={`${style['aButton']} btn btn-primary mt-2`}>Rejouer un ticket !</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>}
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div className={`${style['footerGrass']} position-absolute`}>
|
||||
<Image
|
||||
|
||||
Reference in new issue
Block a user