-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use screens/ClassifyPage/getServerSideProps to generate props for all pages under /classify.
- Loading branch information
1 parent
c38850c
commit 7986246
Showing
3 changed files
with
6 additions
and
15 deletions.
There are no files selected for viewing
8 changes: 1 addition & 7 deletions
8
...t]/classify/workflow/[workflowID]/subject-set/[subjectSetID]/subject/[subjectID]/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
export { default } from '@screens/ClassifyPage' | ||
|
||
export function getServerSideProps({ params, req, res }) { | ||
const { subjectID, subjectSetID, workflowID } = params | ||
const props = { subjectID, subjectSetID, workflowID } | ||
return ({ props }) | ||
} | ||
export { default, getServerSideProps } from '@screens/ClassifyPage' |
8 changes: 1 addition & 7 deletions
8
...es/projects/[owner]/[project]/classify/workflow/[workflowID]/subject/[subjectID]/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
export { default } from '@screens/ClassifyPage' | ||
|
||
export function getServerSideProps({ params, req, res }) { | ||
const { subjectID, workflowID } = params | ||
const props = { subjectID, workflowID } | ||
return ({ props }) | ||
} | ||
export { default, getServerSideProps } from '@screens/ClassifyPage' |
5 changes: 4 additions & 1 deletion
5
packages/app-project/src/screens/ClassifyPage/getServerSideProps.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