revert application view
This commit is contained in:
@@ -39,12 +39,12 @@ const ApplicationView = (props) => {
|
||||
<Banner />
|
||||
<Breadcrumbs slug={appealtypes} />
|
||||
<main className="govuk-main-wrapper">
|
||||
{/*<ApplicationSummary />
|
||||
<ApplicationSummary />
|
||||
<div className="govuk-grid-row">
|
||||
<div className="govuk-grid-column-full">
|
||||
<ApplicationTabs />
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
<Footer footerLinks={footerLinks} />
|
||||
@@ -53,29 +53,29 @@ const ApplicationView = (props) => {
|
||||
);
|
||||
};
|
||||
|
||||
// export const getServerSideProps = wrapper.getServerSideProps(
|
||||
// (store) =>
|
||||
// async ({ query, req, res }) => {
|
||||
// console.log("query-", query);
|
||||
// // const searchResultsObj = (await getBasicSearch(query.q)) || null;
|
||||
// // store.dispatch(setSearchResults(searchResultsObj));
|
||||
// //store.dispatch(setSearch(query.q));
|
||||
// }
|
||||
// );
|
||||
export const getServerSideProps = wrapper.getServerSideProps(
|
||||
(store) =>
|
||||
async ({ query, req, res }) => {
|
||||
console.log("query-", query);
|
||||
// const searchResultsObj = (await getBasicSearch(query.q)) || null;
|
||||
// store.dispatch(setSearchResults(searchResultsObj));
|
||||
//store.dispatch(setSearch(query.q));
|
||||
}
|
||||
);
|
||||
|
||||
// const mapStateToProps = (state) => {
|
||||
// return {
|
||||
// currentView: state.currentView,
|
||||
// search: state.search,
|
||||
// searchResultsObj: state.searchResultsObj,
|
||||
// formData: state.formData,
|
||||
// appealType: state.appealType,
|
||||
// form: state.form,
|
||||
// myCases: state.myCases,
|
||||
// watchedCases: state.watchedCases,
|
||||
// myRepresentations: state.myRepresentations,
|
||||
// awaitingSubmission: state.awaitingSubmission,
|
||||
// };
|
||||
// };
|
||||
const mapStateToProps = (state) => {
|
||||
return {
|
||||
currentView: state.currentView,
|
||||
search: state.search,
|
||||
searchResultsObj: state.searchResultsObj,
|
||||
formData: state.formData,
|
||||
appealType: state.appealType,
|
||||
form: state.form,
|
||||
myCases: state.myCases,
|
||||
watchedCases: state.watchedCases,
|
||||
myRepresentations: state.myRepresentations,
|
||||
awaitingSubmission: state.awaitingSubmission,
|
||||
};
|
||||
};
|
||||
|
||||
export default ApplicationView; //connect(mapStateToProps)(ApplicationView);
|
||||
export default connect(mapStateToProps)(ApplicationView);
|
||||
|
||||
Reference in New Issue
Block a user