Skip to content

Commit 2761d84

Browse files
authored
fix: renamed IdeaFormSection to IdeasList (freeCodeCamp-2025-Summer-Hackathon#139)
1 parent b838bc7 commit 2761d84

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

frontend/src/components/IdeaFormSection.jsx renamed to frontend/src/components/IdeasList.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useApi } from '../hooks/useApi';
44
import { Pagination } from './Pagination';
55
import Spinny from './Spinny';
66

7-
const IdeaFormSection = ({
7+
const IdeasList = ({
88
headerText = 'Vote on Current Ideas',
99
count,
1010
sort = null,
@@ -89,4 +89,4 @@ const IdeaFormSection = ({
8989
);
9090
};
9191

92-
export default IdeaFormSection;
92+
export default IdeasList;

frontend/src/pages/Ideas/IdeasPage.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { useParams } from 'react-router';
2-
import IdeaFormSection from '../../components/IdeaFormSection';
2+
import IdeasList from '../../components/IdeasList';
33

44
export const IdeasPage = ({ headerText = 'All Ideas' }) => {
55
const { page = 1 } = useParams('page');
66
return (
7-
<IdeaFormSection
8-
{...{ count: 20, page: page - 1, paginate: true, headerText }}
9-
/>
7+
<IdeasList {...{ count: 20, page: page - 1, paginate: true, headerText }} />
108
);
119
};
1210

0 commit comments

Comments
 (0)