Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll box #25

Merged
merged 7 commits into from
Feb 25, 2020
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
33 changes: 21 additions & 12 deletions client/components/LeftNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,34 @@ import React from 'react';
import { Nav } from 'react-bootstrap';

const LeftNav = props => (
<Nav defaultActiveKey="/feed" className="flex-column">
<Nav defaultActiveKey="/feed" className="flex-column" id="leftNav">
<Nav.Link>
<img
src="logo2.png"
width="200px"
height="60px"
className="d-inline-block align-top mx-auto"
alt="Snap Desk Logo">
</img>
alt="Snap Desk Logo"
></img>
</Nav.Link>
<Nav.Link eventKey="profile-link">
{' '}
<img
src={props.url}
width="115px"
height="115px"
className="d-inline-block align-top rounded-circle mx-auto"
alt="Snap Desk Logo"
></img>
<h4 id="user-Name">{props.userName}</h4>
</Nav.Link>
<Nav.Link
className="btn btn-success btn-sm"
eventKey="logout-link"
id="logout"
>
Logout
</Nav.Link>
<Nav.Link eventKey="profile-link"> <img
src={props.url}
width="115px"
height="115px"
className="d-inline-block align-top rounded-circle mx-auto"
alt="Snap Desk Logo">
</img>
<h4 id="user-Name">{props.userName}</h4></Nav.Link>
<Nav.Link className="btn btn-success btn-sm" eventKey="logout-link">Logout</Nav.Link>
</Nav>
);

Expand Down
8 changes: 4 additions & 4 deletions client/components/MenteeTicketBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ class MenteeTicketBox extends Component {
if (this.props.ticket.status === 'active') {
buttons = (
<span>
<Button disabled={true} type="button" className="btn btn-success">Resolve</Button>
<Button onClick={() => this.props.deleteTicket(this.props.ticket.messageId)} type="button" className="btn btn-warning">Delete</Button>
<Button disabled={true} type="button" className="btn btn-secondary">Resolve</Button>
<Button onClick={() => this.props.deleteTicket(this.props.ticket.messageId)} type="button" className="btn btn-success">Delete</Button>
</span>
)
} else {
buttons = (
<span>
<Button onClick={() => this.props.resolveTicket(this.props.ticket.messageId)}type="button" className="btn btn-success">Resolve</Button>
<Button disabled={true} type="button" className="btn btn-warning">Delete</Button>
<Button onClick={() => this.props.resolveTicket(this.props.ticket.messageId)}type="button" className="btn btn-secondary">Resolve</Button>
<Button disabled={true} type="button" className="btn btn-success">Delete</Button>
</span>
)
}
Expand Down
10 changes: 5 additions & 5 deletions client/containers/FeedContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class FeedContainer extends Component {
let activeTickets;
console.log('ACTIVE TICKETS: ', this.props.activeTickets);
if (!this.props.activeTickets || this.props.activeTickets.length === 0) {
activeTickets = (<p>No active tickets</p>)
activeTickets = <p>No active tickets</p>;
} else {
activeTickets = [];
for (let i = 0; i < this.props.activeTickets.length; i++) {
Expand Down Expand Up @@ -84,20 +84,20 @@ class FeedContainer extends Component {
)
}


activeTickets.push(ticketBox);
}
}

}

return (
<div>
<div className="ticketDisplay">
<div className="ticketDisplay overflow-auto">
{/* map buildFeed to tickets array */}
{/* <BystanderTicketBox /> */}
{activeTickets}
</div>
<div className="ticketCreator">
<TicketCreator {...this.props} key={this.props.userId}/>
<TicketCreator {...this.props} key={this.props.userId} />
</div>
</div>
);
Expand Down
40 changes: 25 additions & 15 deletions client/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,42 +45,52 @@ html {
.btn-outline-primary:hover {
/* color: #42ffc1 !important; */
color: #6c757d !important;
background-color: #3beeb2 !important;
background-color: #3beeb2 !important;
background-image: none !important;
border-color: #3beeb2 !important;
border-color: #3beeb2 !important;
}
.btn-secondary {
color:#f5f7f6 !important;
color: #f5f7f6 !important;
background-color: #3beeb2 !important;
background-image: none !important;
border-color: #3beeb2!important;
border-color: #3beeb2 !important;
}
.btn-secondary:hover {
/* color: #42ffc1 !important; */
color: #3beeb2 !important;
background-color: #6c757d !important;
background-color: #6c757d !important;
background-image: none !important;
border-color: #6c757d !important;
border-color: #6c757d !important;
}
.btn-success {
color:#f5f7f6 !important;
color: #f5f7f6 !important;
background-color: #6c757d !important;
background-image: none !important;
border-color:#6c757d!important;
border-color: #6c757d !important;
}
.btn-success:hover {
/* color: #42ffc1 !important; */
color: #f5f7f6 !important;
background-color:#3beeb2 !important;
color: #f5f7f6 !important;
background-color: #3beeb2 !important;
background-image: none !important;
border-color: #3beeb2 !important;
border-color: #3beeb2 !important;
}
#mainBackground{
#mainBackground {
background-color: #eeeeee;
}
#user-Name{
#user-Name {
color: #6c757d;
}
.btn-outline-primary:focus {
box-shadow: none !important;
}
box-shadow: none !important;
}

.ticketDisplay {
max-height: 700px;
min-height: 700px;
}

#leftNav {
max-height: 700px;
min-height: 700px;
}
Binary file removed img/profileresize.jpg
Binary file not shown.