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

Added Back Button in issue page #194

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 8 additions & 0 deletions issue-tracker/src/IssueDetailRoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ReactMarkdown from 'react-markdown';
import SuspenseImage from './SuspenseImage';
import IssueDetailComments from './IssueDetailComments';
import IssueActions from './IssueActions';
import Link from './routing/Link';

/**
* The root component for the issue detail route.
Expand Down Expand Up @@ -68,6 +69,13 @@ export default function IssueDetailRoot(props) {
</div>
<IssueDetailComments issue={issue} />
<IssueActions issue={issue} />
<div className="back-issue">
<Link to="/">
<button className="back-issue-button" type="button">
Back
</button>
</Link>
</div>
</div>
);
}
16 changes: 16 additions & 0 deletions issue-tracker/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,19 @@ code {
border-color: #282c34;
margin-right: 10px;
}

.back-issue-button {
padding: 4px 10px;
background-color: #282c34;
border-color: #fff;
color: #fff;
margin-right: 10px;
border-radius: 4px;
}

.back-issue {
margin-top: 20px;
margin-left: 48px;
padding-top: 10px;
border-top: 1px solid #282c34;
}