Skip to content

Commit

Permalink
--Fixed the next button issues on the credential card & return flow
Browse files Browse the repository at this point in the history
  • Loading branch information
BaskarMitrah committed Jul 16, 2024
1 parent 2968b27 commit 4a10f91
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions example/src/pages/credential/GetCredentialApiKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const GetCredentialApiKey = () => {

<GetCredential.UnknownError helpLink="https://some_help_link" helpLinkText="Get Help" className="unKnownError" />

<GetCredential.Card title="Your credential is ready to use" paragraph="Check the downloads section of your browser for the ZIP file, or find it where you save downloads on your machine." nextStepsLabel="Next steps" nextStepsHref="/credentials/nextsteps" className="card_developer_console">
<GetCredential.Card title="Your credential is ready to use" paragraph="Check the downloads section of your browser for the ZIP file, or find it where you save downloads on your machine." className="card_developer_console">

<GetCredential.Card.Side>
<div style="display : flex ; gap : 16px ; flex-direction : column;">
Expand All @@ -67,7 +67,7 @@ const GetCredentialApiKey = () => {

</GetCredential.Card>

<GetCredential.Return title="Previously created projects" paragraph="Select a project and access your existing credentials for Firefly - Firefly and Creative Cloud Automation." nextStepsLabel="Next steps" nextStepsHref="/credentials/nextsteps" className="card_developer_console">
<GetCredential.Return title="Previously created projects" paragraph="Select a project and access your existing credentials for Firefly - Firefly and Creative Cloud Automation." className="card_developer_console">

<GetCredential.Return.Side>
<GetCredential.Return.Side.Custom>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,17 @@ export const CredentialDetailsCard = ({
align-items: start;
}
`}>
<a href={nextButtonLink} target="_blank" rel="noreferrer">
<button
className={`spectrum-Button spectrum-Button--outline spectrum-Button--primary spectrum-Button--sizeM`}
css={css`
{nextButtonLabel &&
<a href={nextButtonLink} target="_blank" rel="noreferrer">
<button
className={`spectrum-Button spectrum-Button--outline spectrum-Button--primary spectrum-Button--sizeM`}
css={css`
width: fit-content;
margin-top: 10px;
`}>
<span className="spectrum-Button-label">{nextButtonLabel}</span>
</button>
</a>
<span className="spectrum-Button-label">{nextButtonLabel}</span>
</button>
</a>}
{developerConsoleManage &&
<a
href={devConsoleLink}
Expand Down

0 comments on commit 4a10f91

Please sign in to comment.