Skip to content

Commit

Permalink
chore: testing sse
Browse files Browse the repository at this point in the history
  • Loading branch information
omelchenkoy committed Feb 20, 2025
1 parent eb2819b commit 8e5d6a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/pages/HomePage/Components/PaymentStatus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function PaymentStatus({ paymentHash, onSuccess }) {
return () => {
eventSource.close();
};
}, [paymentHash, onSuccess]);
}, []);

return (
<div>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/HomePage/Components/TipQR.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useCallback } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { QRCodeSVG } from 'qrcode.react';
import { Pencil } from 'lucide-react';
Expand Down Expand Up @@ -30,9 +30,9 @@ function TipQR() {
window.open(walletUrl, '_blank');
};

const handleMoveForward = () => {
const handleMoveForward = useCallback(() => {
dispatch(setStep(5));
};
}, [dispatch]);

return (
<div className="tipQR">
Expand Down
8 changes: 0 additions & 8 deletions src/pages/HomePage/Components/TipSatsForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@ function TipSatForm() {
</div>

<div className="tipTweetFormButtonGroup">
{/* <button
className="tipSatBackButton black stroke"
onClick={onBack}
>
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M23 2L9 16L23 30" strokeWidth="3" strokeLinecap="round" strokeLinejoin="round"/>
</svg>
</button> */}
<button
onClick={handleGoBack}
className="rounded-full border border-black"
Expand Down

0 comments on commit 8e5d6a6

Please sign in to comment.