Skip to content

Commit

Permalink
feat: added payment page
Browse files Browse the repository at this point in the history
  • Loading branch information
Srish-ty committed May 3, 2024
1 parent 1932692 commit 76a9180
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/components/payment/Final.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ import { Heading, Paragraph } from '../shared';
import { Contactorg, Emaildata } from '../../data/paymentData';
import { uploadReceipt } from './uploadReceipt';
import { updateDocumentByUid } from '../../firebase/uploadProof';
import { redirect } from 'next/navigation';

function Final() {
const { userInfo } = useContext(AuthContext);
const currentUser = userInfo[0];
if (!currentUser) {
redirect('/');
}

const [file, setFile] = useState(null);

Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { lazy } from 'react';
export default {
Home: lazy(() => import('./home')),
Playground: lazy(() => import('./playground')),

Register: lazy(() => import('./register')),
Payment: lazy(() => import('./payment')),
};
2 changes: 1 addition & 1 deletion src/pages/payment.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Final from '../components/payment/Final.jsx';
import NavBar from '../components/shared/NavBar';
import NavBar from '../components/shared/marginals/NavBar';

export default function Payment() {
return (
Expand Down

0 comments on commit 76a9180

Please sign in to comment.