Skip to content

Commit

Permalink
Merge branch 'master' into community
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatnema authored Mar 4, 2023
2 parents be5a92b + e22911e commit 0c6eac0
Show file tree
Hide file tree
Showing 16 changed files with 662 additions and 181 deletions.
2 changes: 2 additions & 0 deletions components/dashboard/GoodFirstIssues.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function GoodFirstIssues({ issues }) {
//Get current issues

let filteredIssues = issues;
let allIssues=issues
if (selectedRepo !== 'All')
filteredIssues = filteredIssues.filter(
(issue) => issue.repo === selectedRepo
Expand All @@ -34,6 +35,7 @@ function GoodFirstIssues({ issues }) {
<Filters
className="ml-auto"
issues={filteredIssues}
allIssues={issues}
setSelectedRepo={setSelectedRepo}
setSelectedArea={setSelectedArea}
selectedArea={selectedArea}
Expand Down
5 changes: 3 additions & 2 deletions components/dashboard/table/Filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default function Filters({
className,
issues,
setSelectedRepo,
allIssues,
setSelectedArea,
selectedArea,
selectedRepo,
Expand All @@ -39,13 +40,13 @@ export default function Filters({
});
const wrapperRef = useRef(null);
useOutsideAlerter(wrapperRef, setOpen);
const areas = issues.map((issue) => issue.area);
const areas = allIssues.map((issue) => issue.area);
const uniqueAreas = ['All', ...new Set(areas)].map((area) => ({
key: area,
text: area,
}));

const repos = issues.map((issue) => issue.repo);
const repos = allIssues.map((issue) => issue.repo);
const uniqueRepos = ['All', ...new Set(repos)].map((repo) => ({
key: repo,
text: repo,
Expand Down
2 changes: 1 addition & 1 deletion components/dashboard/table/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Pagination = ({ issuesPerPage, currentPage, totalIssues, paginate }) => {
}

return (
<div className="px-5 py-5 bg-white border-t flex flex-col xs:flex-row items-center xs:justify-between ">
<div className="px-5 py-5 bg-white border-t flex flex-col xs:flex-row items-center xs:justify-between">
<span className="text-xs xs:text-sm text-gray-900">
Showing {lowerBound} to {upperBound} {''}
of {totalIssues} Issues
Expand Down
Loading

0 comments on commit 0c6eac0

Please sign in to comment.