-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Reorganize files - Call the flask backend from server side to show external spans
- Loading branch information
Showing
36 changed files
with
171 additions
and
299 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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion
2
next/src/components/employees/emma.js → next/public/employees/emma.js
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
2 changes: 1 addition & 1 deletion
2
next/src/components/employees/jane.js → next/public/employees/jane.js
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
2 changes: 1 addition & 1 deletion
2
next/src/components/employees/keith.js → next/public/employees/keith.js
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
2 changes: 1 addition & 1 deletion
2
next/src/components/employees/lily.js → next/public/employees/lily.js
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
2 changes: 1 addition & 1 deletion
2
next/src/components/employees/mason.js → next/public/employees/mason.js
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
2 changes: 1 addition & 1 deletion
2
next/src/components/employees/noah.js → next/public/employees/noah.js
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
'use client' | ||
|
||
import Link from 'next/link'; | ||
import * as Sentry from '@sentry/nextjs'; | ||
import { useEffect } from 'react'; | ||
|
||
function CompleteError() { | ||
useEffect(() => { | ||
window.setTimeout(() => { | ||
if (sessionStorage.getItem('userFeedback') === 'true') { | ||
sessionStorage.removeItem('userFeedback'); | ||
if (sessionStorage.getItem('lastErrorEventId')) { | ||
Sentry.showReportDialog({ | ||
eventId: sessionStorage.getItem('lastErrorEventId'), | ||
}); | ||
} else { | ||
console.log( | ||
'No error event id found, not showing User Feedback report dialog' | ||
); | ||
} | ||
} | ||
}, 3500); | ||
}); | ||
|
||
return ( | ||
<div className="checkout-container-complete sentry-unmask"> | ||
<h2>We're having some trouble</h2> | ||
<p> | ||
We were unable to process your order but will do everything we can to | ||
make it right. Please <Link href="#">reach out to us</Link> if you have | ||
been charged or have any questions. | ||
</p> | ||
<button id="contact-us">Contact Us</button> | ||
</div> | ||
); | ||
} | ||
|
||
export default CompleteError; |
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,28 @@ | ||
'use client' | ||
|
||
import Link from 'next/link'; | ||
import { useSelector } from 'react-redux'; | ||
|
||
function Complete(props) { | ||
const cart = useSelector((state) => state.cart); | ||
|
||
const RandomNumber = Math.floor(Math.random() * 99999) + 10000; | ||
|
||
return ( | ||
<div className="checkout-container-complete"> | ||
<h2>Checkout complete</h2> | ||
<h4> | ||
Order No: {RandomNumber} — Total: ${cart.total}.00 | ||
</h4> | ||
<p>A confirmation email has been sent to the address you provided.</p> | ||
<p> | ||
Your plants will thank you. You can{' '} | ||
<Link href="/">track your order</Link> or{' '} | ||
<Link href="/">contact us</Link> if you have any questions. Have a sunny | ||
day. | ||
</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default Complete; |
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.
Oops, something went wrong.