forked from Suneet25/zoomcar-clone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8db559c
commit 5ab97e9
Showing
12 changed files
with
60 additions
and
110 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 was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,46 +1,37 @@ | ||
import React, { useEffect, useState } from 'react' | ||
import SUCCESS from "./Success.module.css" | ||
|
||
|
||
|
||
|
||
import React, { useEffect, useState } from "react"; | ||
import SUCCESS from "../../Styles/Success.module.css"; | ||
|
||
const Success = () => { | ||
const [heading, setHeading] = useState("please wait, transection is processing...") | ||
const [Image, setImage] = useState('https://i.gifer.com/BvMu.gif') | ||
|
||
|
||
|
||
const handleSuccess =()=>{ | ||
setHeading("Payment Successful") | ||
setImage("https://c.tenor.com/xVfFIHxAzW4AAAAC/success.gif") | ||
|
||
} | ||
|
||
useEffect(()=>{ | ||
setTimeout(()=>{ | ||
handleSuccess() | ||
|
||
|
||
},3000) | ||
|
||
},[]) | ||
const [heading, setHeading] = useState( | ||
"please wait, transection is processing..." | ||
); | ||
const [Image, setImage] = useState("https://i.gifer.com/BvMu.gif"); | ||
|
||
const handleSuccess = () => { | ||
setHeading("Payment Successful"); | ||
setImage("https://c.tenor.com/xVfFIHxAzW4AAAAC/success.gif"); | ||
}; | ||
|
||
useEffect(() => { | ||
setTimeout(() => { | ||
handleSuccess(); | ||
}, 3000); | ||
}, []); | ||
return ( | ||
<div className={SUCCESS.sucDiv}> | ||
<div> | ||
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARwAAACxCAMAAAAh3/JWAAAAflBMVEVmqD7///9jpjldpDBaoirt9enh7NxfpTNipjdjpzWGuWdgpTXC2rdZoijP4sXW582KvG1rq0R+tGCFt2rc6tSz0qGny5OcxYWgx4rz+PCXwn/C27SQvXna6dFxrk2szZqz0aR+tVyOvnP5/Pd1sFFVoRzF27uWxHqRwXLm7+L6KV1gAAAFRUlEQVR4nO3ZDZOaOhQGYEwCCcSAsIh8VL5Ee/3/f/CeIK740e30zp122b7PtFOE6CzvHk4S6zgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPc0v38dO0yy2Jd/5qf5XHjuuXNFJfXWLc4Z//l7vzpRre5FykTjQfvXp6O+PWQT8uN+OuzUbCDj79QPP+3LUf4cN+KazSrXt1F6qNaTU/kXpWOrQlxoh/nRexHlt56sgllxpX/T8ya7KhqluVS3bFYdex/CZ6dXCfvgw74Y3d96Md/fMtjOCoQlb1bS2oIazyt1i4jNjq8vZuduh+rugVRLeDxnvTidZSPmY5glBzpfUTZMqL7szNiTqFNvykDYxJgvpOnoApNyUw5mzITLzS4x0g70+zIWvvSZo7jgcVnWf+Bufwmr+82oE2KejXl6eJhTUMMRzGFxaIccbA0xXV0nfjvzlS4du3E+9qaYPsIfLx8yOS0aqvOqcES0cr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oy2uUDY9u08cM2ibK+qGoWV+ssi/ucZ10+5ENzWMTc/YAHJy/sq7P36Pzxf8FIh2nbhmlmVlzbyVpyyTjtuUxT2q88uD2rtCOZYryKFvCt3wuMG9o5GvHkPy9hX3xzLp/XlQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAT/4Fb/dOBUPMD+UAAAAASUVORK5CYII=" alt="" /> | ||
</div> | ||
|
||
<h1>{heading}</h1> | ||
<div> | ||
<img src={Image} alt="success" /> | ||
</div> | ||
<div> | ||
<img | ||
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARwAAACxCAMAAAAh3/JWAAAAflBMVEVmqD7///9jpjldpDBaoirt9enh7NxfpTNipjdjpzWGuWdgpTXC2rdZoijP4sXW582KvG1rq0R+tGCFt2rc6tSz0qGny5OcxYWgx4rz+PCXwn/C27SQvXna6dFxrk2szZqz0aR+tVyOvnP5/Pd1sFFVoRzF27uWxHqRwXLm7+L6KV1gAAAFRUlEQVR4nO3ZDZOaOhQGYEwCCcSAsIh8VL5Ee/3/f/CeIK740e30zp122b7PtFOE6CzvHk4S6zgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPc0v38dO0yy2Jd/5qf5XHjuuXNFJfXWLc4Z//l7vzpRre5FykTjQfvXp6O+PWQT8uN+OuzUbCDj79QPP+3LUf4cN+KazSrXt1F6qNaTU/kXpWOrQlxoh/nRexHlt56sgllxpX/T8ya7KhqluVS3bFYdex/CZ6dXCfvgw74Y3d96Md/fMtjOCoQlb1bS2oIazyt1i4jNjq8vZuduh+rugVRLeDxnvTidZSPmY5glBzpfUTZMqL7szNiTqFNvykDYxJgvpOnoApNyUw5mzITLzS4x0g70+zIWvvSZo7jgcVnWf+Bufwmr+82oE2KejXl6eJhTUMMRzGFxaIccbA0xXV0nfjvzlS4du3E+9qaYPsIfLx8yOS0aqvOqcES0crcPLf+TYhfKv8vmeZikZ66I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V+ssi/ucZ10+5ENzWMTc/YAHJy/sq7P36Pzxf8FIh2nbhmlmVlzbyVpyyTjtuUxT2q88uD2rtCOZYryKFvCt3wuMG9o5GvHkPy9hX3xzLp/XlQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAT/4Fb/dOBUPMD+UAAAAASUVORK5CYII=" | ||
alt="" | ||
/> | ||
</div> | ||
|
||
<h1>{heading}</h1> | ||
<div> | ||
<img src={Image} alt="success" /> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Success | ||
); | ||
}; | ||
|
||
export default Success; |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.