Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Chen committed Feb 4, 2025
1 parent 0366cfe commit 8a40299
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/server/API/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
},
"Deidentification": {
"Patient": {
"Enabled": true,
"Enabled": false,
"DateShifting": {
"Increment": "DAY",
"LowerBound": -365,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import React from 'react';
import { Button, Row, Col } from 'reactstrap';
import { SessionType } from '../../models/Session'
import { AppConfig, CustomAttestationType } from '../../models/Auth';
import TextareaAutosize from 'react-textarea-autosize';

interface Props {
config?: AppConfig;
Expand All @@ -34,6 +33,9 @@ export default class CustomAttestationConfirmation extends React.PureComponent<P
const showText = config && config.attestation.enabled;
const useHtml = config.attestation.type && config.attestation.type === CustomAttestationType.Html;
const skipModeSelection = config && config.attestation.skipModeSelection;
const nextButtonContainerColSize = skipModeSelection ? 12: 6;
const nextButtonContainerClass = skipModeSelection ? "" : "right";
const nextButtonText = skipModeSelection ? "Access the Data Exploration Tool" : "I Agree";

return (
<div className={confirmationClass}>
Expand All @@ -56,16 +58,17 @@ export default class CustomAttestationConfirmation extends React.PureComponent<P

<div>
<Row className={`${c}-confirmation-settings`} key='1'>
{/* <Col md={6} className="left">
{!skipModeSelection &&
<Col md={6} className="left">
{useDisplay} - {phiDisplay}
</Col> */}
</Col>}
{!(isSubmittingAttestation || hasAttested) &&
<Col md={skipModeSelection ? 12: 6} className={`${skipModeSelection ? "" : "right"}`}>
<Col md={nextButtonContainerColSize} className={nextButtonContainerClass}>
<Button
onClick={handleIAgreeClick}
tabIndex={-1}
className="leaf-button leaf-button-primary">
Access the Data Exploration Tool
{nextButtonText}
</Button>
{!skipModeSelection &&
<Button
Expand Down
6 changes: 0 additions & 6 deletions src/ui-client/src/components/Header/UserButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,6 @@ export default class UserButton extends React.PureComponent<Props> {

<div className={`${c}-option-divider`} />

{/* {auth && auth.config && auth.config.authentication.logout.enabled &&
<div className={`${c}-option ${c}-option-logout`} onClick={logoutClickHandler}>
<FaDoorOpen className="myleaf-menu-icon myleaf-menu-icon-logout" />
<span>Log Out</span>
</div>
} */}
</div>
</div>
</NavItem>
Expand Down
20 changes: 5 additions & 15 deletions src/ui-client/src/containers/Attestation/Attestation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class Attestation extends React.PureComponent<Props, State> {

constructor(props: Props) {
super(props);
const {config} = props;
this.state = {
attestation: {
documentation: this.defaultDocumentation,
Expand Down Expand Up @@ -158,12 +157,6 @@ class Attestation extends React.PureComponent<Props, State> {
<div className={`${c}-nida-logo-wrapper`}>
<img alt='nida-logo' className={`${c}-nida-logo`} src={process.env.PUBLIC_URL + '/images/logos/orgs/nida.svg'} />
</div>
{/* <div className={`${c}-iths-logo-wrapper`}>
<img alt='iths-logo' className={`${c}-iths-logo`} src={process.env.PUBLIC_URL + '/images/logos/orgs/iths.png'} />
</div>
<div className={`${c}-cd2h-logo-wrapper`}>
<img alt='cd2h-logo' className={`${c}-cd2h-logo`} src={process.env.PUBLIC_URL + '/images/logos/orgs/cd2h.png'} />
</div> */}

{/* Optional instance logo row */}
{config && config.attestation.credits.enabled &&
Expand All @@ -188,14 +181,11 @@ class Attestation extends React.PureComponent<Props, State> {
</ModalHeader>

<div className={progressBarClasses.join(' ')} style={{ width: `${sessionLoadProgressPercent}%` }} />
{/* {userContext && !userContext.isPhiOkay &&
<div className={`${c}-deidentonly`}>
<p>Participant data restricted to De-Identified mode only</p>
</div>
} */}
<div className={`${c}-deidentonly`}>
<p>Participant data restricted to De-Identified mode only</p>
</div>
{(userContext && !userContext.isPhiOkay) &&
<div className={`${c}-deidentonly`}>
<p>Participant data restricted to De-Identified mode only</p>
</div>
}
<ModalBody className={`${c}-body`}>
{auth.error &&
<div className={`${c}-error-text`}>
Expand Down
1 change: 0 additions & 1 deletion src/ui-client/src/containers/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ class Header extends React.PureComponent<Props> {
federated={responders.size > 1}
imports={importState}
helpClickHandler={this.handleGetHelpClick}
//logoutClickHandler={this.handleLogoutClick}
myLeafModalToggleHandler={this.handleMyleafModalToggleClick}
user={user}
/>
Expand Down

0 comments on commit 8a40299

Please sign in to comment.