Skip to content

Commit

Permalink
no need to memoize this! (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
artursapek authored Mar 28, 2024
1 parent 6953769 commit 9561412
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions wormhole-connect/src/components/FooterNavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useCallback, useMemo } from 'react';
import React, { useCallback } from 'react';
import { useDispatch } from 'react-redux';
import { makeStyles } from 'tss-react/mui';
import { ICON } from 'utils/style';
Expand Down Expand Up @@ -60,10 +60,7 @@ export default function FooterNavBar() {
[dispatch],
);

const entries = useMemo(
() => config.menu.reduce(itemAppender, defaultMenuItems(navigate)),
[navigate],
);
const entries = config.menu.reduce(itemAppender, defaultMenuItems(navigate));

return (
<div className={classes.menu}>
Expand Down

0 comments on commit 9561412

Please sign in to comment.