Skip to content

Commit

Permalink
Refactor: handleNavClick 함수 예외 처리 삭제
Browse files Browse the repository at this point in the history
issue #6
  • Loading branch information
jindonyy committed May 12, 2022
1 parent 43b0fba commit c8e905d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
],
"rules": {
"import/no-unresolved": 0,
"import/prefer-default-export": 0
"import/prefer-default-export": 0,
"react/no-array-index-key": 0
}
},
"browserslist": {
Expand Down
5 changes: 2 additions & 3 deletions src/layout/GNB/GNB.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/no-array-index-key */
import React, { useState } from 'react';
import { Container, NavItem } from 'layout/GNB/GNB.style';

Expand All @@ -10,9 +9,9 @@ const navItems = [
export default function GNB() {
const [selecetedNavIdx, setSelectedNavIdx] = useState(0);

function handleNavClick(idx) {
const handleNavClick = idx => {
setSelectedNavIdx(idx);
}
};

return (
<Container>
Expand Down

0 comments on commit c8e905d

Please sign in to comment.