Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/components/FooterNeedHelp/FooterNeedHelp.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react'
import './FooterNeedHelp.scss'

const FooterNeedHelp = () => (
<p styleName="need-help">
Have an urgent issue?<br />
E: <a href="mailto:support@topcoder.com">support@topcoder.com</a>
</p>
)

export default FooterNeedHelp
15 changes: 15 additions & 0 deletions src/components/FooterNeedHelp/FooterNeedHelp.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@import '~tc-ui/src/styles/tc-includes';

.need-help {
@include roboto;
color: $tc-gray-50;
font-size: 12px;
line-height: 150%;
margin-top: 2 * $base-unit;
padding-bottom: 8 * $base-unit;
text-align: center;

a {
color: $tc-dark-blue-110;
}
}
7 changes: 7 additions & 0 deletions src/components/UserSidebar/UserSidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import NotificationSettingsIcon from '../../assets/icons/v.2.5/icon-notification
import AccountSecurityIcon from '../../assets/icons/v.2.5/icon-account-security.svg'

import './UserSidebar.scss'
import FooterNeedHelp from '../FooterNeedHelp/FooterNeedHelp'

const navLinks = [{
label: 'ALL PROJECTS',
Expand Down Expand Up @@ -62,6 +63,11 @@ const navLinks = [{
to: '/faqs',
Icon: FAQIcon,
iconClassName: 'fill',
}, {
label: 'GIVE APPLICATION FEEDBACK',
to: '/',
Icon: FAQIcon,
iconClassName: 'fill',
}]

class UserSidebar extends React.Component {
Expand Down Expand Up @@ -117,6 +123,7 @@ class UserSidebar extends React.Component {
SYSTEM
</div>
<MenuList navLinks={navLinks} onAccordionToggle={(i, open) => this.setAccordionOpen(i, open)} />
<FooterNeedHelp />
</div>
</div>
)
Expand Down
21 changes: 19 additions & 2 deletions src/projects/detail/containers/ProjectInfoContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import {
import { saveFeedComment } from '../../actions/projectTopics'

import TailLeft from '../../../assets/icons/arrows-16px-1_tail-left.svg'
import FAQIcon from '../../../assets/icons/faq.svg'

import './ProjectInfoContainer.scss'
import MenuList from '../../../components/MenuList/MenuList'
Expand All @@ -51,6 +52,7 @@ import {
filterTopicAndPostChangedNotifications,
filterFileAndLinkChangedNotifications,
} from '../../../routes/notifications/helpers/notifications'
import FooterNeedHelp from '../../../components/FooterNeedHelp/FooterNeedHelp'

const EnhancedProjectStatus = editableProjectStatus(ProjectStatus)

Expand Down Expand Up @@ -427,13 +429,13 @@ class ProjectInfoContainer extends React.Component {
const { showDeleteConfirm } = this.state
const { project, currentMemberRole, isSuperUser, phases, hideInfo, hideMembers,
productsTimelines, isProjectProcessing, notifications, projectTemplates } = this.props

const projectTemplateId = project.templateId
const projectTemplateKey = _.get(project, 'details.products[0]')
const projectTemplate = projectTemplateId
? _.find(projectTemplates, pt => pt.id === projectTemplateId)
: getProjectTemplateByKey(projectTemplates, projectTemplateKey)

const isTaaS = PROJECT_CATEGORY_TAAS === projectTemplate.category
let directLinks = null
// check if direct links need to be added
Expand Down Expand Up @@ -587,6 +589,21 @@ class ProjectInfoContainer extends React.Component {
{!hideMembers &&
<TeamManagementContainer projectId={project.id} members={project.members} />
}
{/* Separator above menulist */}
<hr styleName="separator" />
<div styleName="menulist-container">
<MenuList
navLinks={[
{
label: 'GIVE APPLICATION FEEDBACK',
to: '/',
Icon: FAQIcon,
iconClassName: 'fill',
}
]}
/>
</div>
<FooterNeedHelp />
</div>
</div>
)
Expand Down