Skip to content

Commit

Permalink
Merge pull request #975 from singnet/ui-fix
Browse files Browse the repository at this point in the history
[SPT-725] Fixed link to download service token
  • Loading branch information
MarinaFedy authored Jan 23, 2025
2 parents 752b335 + 8cb9efe commit d4180d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/components/ServiceDetails/InstallAndRunService/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,19 +155,9 @@ class InstallAndRunService extends Component {
/>
)}
{downloadTokenURL && (
<StyledButton
type="blue"
btnText={
<a
className={classes.downloadTokenLink}
href={downloadTokenURL}
download={downloadTokenFileName}
>
Download Token
</a>
}
onClick={this.generateToken}
/>
<a className={classes.downloadTokenLink} href={downloadTokenURL} download={downloadTokenFileName}>
<StyledButton type="blue" btnText="Download Token" />
</a>
)}
</div>
<AlertBox type={alert.type} message={alert.message} />
Expand Down
4 changes: 4 additions & 0 deletions src/components/ServiceDetails/InstallAndRunService/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ export const useStyles = (theme) => ({
downloadTokenLink: {
textDecoration: "none",
color: "inherit",
height: "100%",
display: "block",
width: "min-content",
whiteSpace: "nowrap",
},
freecallContainer: {
paddingLeft: 20,
Expand Down

0 comments on commit d4180d8

Please sign in to comment.