Skip to content

Commit

Permalink
refactor :: log error
Browse files Browse the repository at this point in the history
refactor :: ์ฝ˜์†” ์˜ค๋ฅ˜ ์ œ๊ฑฐ #22
  • Loading branch information
ftery0 authored Nov 9, 2024
2 parents 330da46 + 76bc290 commit 4338b79
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/common/FallbackSkeleton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const FallbackSkeleton = () => {
<>
<SkeletonContainer>
{Array.from({ length: 6 }).map((_, idx) => (
<SkeletonItem />
<SkeletonItem key={idx} />
))}
</SkeletonContainer>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,17 @@ const HomeScheduleSideBarHeaderDropdown = () => {

return (
<HomeScheduleSideBarHeaderDropdownContainer
onClick={() => setFold((prev) => !prev)}
>
onClick={() => setFold((prev) => !prev)}>
{classificationKeyword}
<HomeScheduleSideBarHeaderDropdownIcon fold={fold}>
<BsFillTriangleFill />
</HomeScheduleSideBarHeaderDropdownIcon>
{!fold && (
<HomeScheduleSideBarHeaderDropdownWrap>
{HOME_SCHEDULE_SIDE_BAR_HEADER_DROPDOWN_ITEMS.map((item) => (
{HOME_SCHEDULE_SIDE_BAR_HEADER_DROPDOWN_ITEMS.map((item, idx) => (
<HomeScheduleSideBarHeaderDropdownItem
onClick={() => setClassificationKeyword(item)}
>
key={idx}>
{item}
</HomeScheduleSideBarHeaderDropdownItem>
))}
Expand All @@ -40,4 +39,4 @@ const HomeScheduleSideBarHeaderDropdown = () => {
);
};

export default HomeScheduleSideBarHeaderDropdown;
export default HomeScheduleSideBarHeaderDropdown;
2 changes: 1 addition & 1 deletion src/hooks/schedule/useHomeSidebarSchedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const useHomeSidebarSchedule = () => {
{ suspense: true },
);


const loadMyGradeSchedules = useCallback(() => {
setSchedules(
schedulesData?.data.filter(
Expand All @@ -46,7 +47,6 @@ const useHomeSidebarSchedule = () => {
case "๋‚ด ์ผ์ •":
loadMyGradeSchedules();
break;

default:
loadAllSchedules();
break;
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ root.render(
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
reportWebVitals();

0 comments on commit 4338b79

Please sign in to comment.