32 lines
751 B
JavaScript
32 lines
751 B
JavaScript
// ReviewPage.js
|
|
import React from 'react';
|
|
|
|
function ReviewPage({ careerData, financialData, collegeData, onSubmit, onBack }) {
|
|
console.log("REVIEW PAGE PROPS:", {
|
|
careerData,
|
|
financialData,
|
|
collegeData,
|
|
});
|
|
return (
|
|
<div>
|
|
<h2>Review Your Info</h2>
|
|
|
|
<h3>Career Info</h3>
|
|
<pre>{JSON.stringify(careerData, null, 2)}</pre>
|
|
|
|
<h3>Financial Info</h3>
|
|
<pre>{JSON.stringify(financialData, null, 2)}</pre>
|
|
|
|
<h3>College Info</h3>
|
|
<pre>{JSON.stringify(collegeData, null, 2)}</pre>
|
|
|
|
<button onClick={onBack}>← Back</button>
|
|
<button onClick={onSubmit} style={{ marginLeft: '1rem' }}>
|
|
Submit All
|
|
</button>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default ReviewPage;
|