Skip to content

Commit

Permalink
Fixed error in Floating Nav Menu
Browse files Browse the repository at this point in the history
- removed JSX fragment from FloatingNav.tsx
- added a new div to wrap the JSX in FloatingNav.tsx
- removed unnecessary console.log from RSCDetail.tsx
  • Loading branch information
hawkishpolicy committed Apr 24, 2024
1 parent 9f61619 commit ce3a6b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/ReadySetCyber/FloatingNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export const FloatingNav: React.FC<Props> = ({ categories }) => {
}}
>
{categories.map((category, index) => (
<>
<MenuItem key={index} onClick={handleClose}>
<div key={index}>
<MenuItem onClick={handleClose}>
<HashLink
style={{
textDecoration: 'none',
Expand All @@ -83,7 +83,7 @@ export const FloatingNav: React.FC<Props> = ({ categories }) => {
</HashLink>
</MenuItem>
<Divider />
</>
</div>
))}
</Menu>
</>
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/ReadySetCyber/RSCDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export const RSCDetail: React.FC = () => {
useEffect(() => {
fetchResult();
}, [fetchResult]);
console.log('Transformed categories:', categories);

return (
<>
Expand Down

0 comments on commit ce3a6b6

Please sign in to comment.