forked from Sage-Bionetworks/Synapse-React-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
33 additions
and
27 deletions.
There are no files selected for viewing
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
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,11 +1,13 @@ | ||
```jsx | ||
<PageProgress | ||
barColor={ "green" } | ||
barPercent={ 75 } | ||
backBtnLabel={ "Back"} | ||
backBtnCallback={ ()=>{ console.log("you just clicked back button") } } | ||
forwardBtnLabel={ "Next" } | ||
forwardBtnCallback={ ()=>{ console.log("When forwardBtnActive is set to true, you will see this message") } } | ||
forwardBtnActive={ false } | ||
/> | ||
const [percent, setPercent] = React.useState(50); | ||
|
||
<PageProgress | ||
barColor={ "green" } | ||
barPercent={ percent } | ||
backBtnLabel={ "Back"} | ||
backBtnCallback={ ()=>{ setPercent(percent-25) } } | ||
forwardBtnLabel={ "Next" } | ||
forwardBtnCallback={ ()=>{ setPercent(percent+25) } } | ||
forwardBtnActive={ percent < 100 } | ||
/> | ||
``` |
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,3 +1,3 @@ | ||
```jsx | ||
accessToken && <DownloadListTable /> | ||
accessToken ? <DownloadListTable /> : <>Sign in to view this component</> | ||
``` |
2 changes: 1 addition & 1 deletion
2
src/lib/containers/download_list_v2/AvailableForDownloadTable.md
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,3 +1,3 @@ | ||
```jsx | ||
<AvailableForDownloadTable /> | ||
accessToken ? <AvailableForDownloadTable /> : <>Sign in to view this component</> | ||
``` |
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,6 +1,6 @@ | ||
```jsx | ||
accessToken && <AccessTokenPage | ||
accessToken ? <AccessTokenPage | ||
title={'Personal Access Tokens'} | ||
body={'Create and manage tokens that can be used to access your Synapse account programmatically.'} | ||
></AccessTokenPage> | ||
/> : <>Sign in to view this component</> | ||
``` |
24 changes: 14 additions & 10 deletions
24
src/lib/containers/synapse_form_wrapper/SynapseFormWrapper.md
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,13 +1,17 @@ | ||
Contribution Form | ||
```jsx | ||
<SynapseFormWrapper | ||
formSchemaEntityId="syn20692910" | ||
fileNamePath="study.submission_name" | ||
formUiSchemaEntityId="syn20692911" | ||
formNavSchemaEntityId="syn20968007" | ||
isWizardMode={true} | ||
token={accessToken} | ||
formTitle="Your Contribution Request" | ||
formClass="contribution-request" | ||
/> | ||
<SynapseContextConsumer> | ||
{synapseContext => | ||
<SynapseFormWrapper | ||
formSchemaEntityId="syn20692910" | ||
fileNamePath="study.submission_name" | ||
formUiSchemaEntityId="syn20692911" | ||
formNavSchemaEntityId="syn20968007" | ||
isWizardMode={true} | ||
token={synapseContext.accessToken} | ||
formTitle="Your Contribution Request" | ||
formClass="contribution-request" | ||
/> | ||
} | ||
</SynapseContextConsumer> | ||
``` |
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