feat(client): add show solution button in TimeLine (#40120)

* feat: add show solution button in TimeLine

* feat: added tests for CertificateSettings and TimeLine

* feat: view button only for projects

* feat: view button visible only for projects
This commit is contained in:
dipayanDebTheCoder
2020-11-04 20:10:56 +05:30
committed by GitHub
parent fdcf657d93
commit 56ad1c7d60
5 changed files with 281 additions and 11 deletions

View File

@@ -194,6 +194,7 @@ export class CertificationSettings extends Component {
block={true}
bsStyle='primary'
className='btn-invert'
id={`btn-for-${projectId}`}
onClick={onClickHandler}
>
Show Code
@@ -237,6 +238,7 @@ export class CertificationSettings extends Component {
bsStyle='primary'
className='btn-invert'
href={solution}
id={`btn-for-${projectId}`}
rel='noopener noreferrer'
target='_blank'
>
@@ -249,6 +251,7 @@ export class CertificationSettings extends Component {
block={true}
bsStyle='primary'
className='btn-invert'
id={`btn-for-${projectId}`}
onClick={onClickHandler}
>
Show Code