fix(client): academic honesty pages and settings (#35348)

This commit is contained in:
mrugesh mohapatra
2019-02-22 18:58:38 +05:30
committed by Ahmad Abdolsaheb
parent 86cf0cff91
commit 163540f8fc
5 changed files with 57 additions and 53 deletions

View File

@@ -2,9 +2,9 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, Panel } from '@freecodecamp/react-bootstrap';
import FullWidthRow from '../helpers/FullWidthRow';
import { FullWidthRow } from '../helpers';
import SectionHeader from './SectionHeader';
import academicPolicy from '../../resources/honesty-policy';
import HonestyPolicy from '../../resources/honesty-policy';
import './honesty.css';
@@ -37,10 +37,10 @@ class Honesty extends Component {
<SectionHeader>Academic Honesty Policy</SectionHeader>
<FullWidthRow>
<Panel className='honesty-panel'>
{academicPolicy}
<br />
{isHonest ? this.renderIsHonestAgreed() : this.renderAgreeButton()}
<HonestyPolicy />
</Panel>
<br />
{isHonest ? this.renderIsHonestAgreed() : this.renderAgreeButton()}
</FullWidthRow>
</section>
);