IconGridItem: nix the redundant ErrorBoundary
This commit is contained in:
@@ -10,7 +10,6 @@ import { IconProps, Icon } from "phosphor-react";
|
|||||||
|
|
||||||
import { iconPreviewOpenAtom } from "../../state/atoms";
|
import { iconPreviewOpenAtom } from "../../state/atoms";
|
||||||
import InfoPanel from "./InfoPanel";
|
import InfoPanel from "./InfoPanel";
|
||||||
import ErrorBoundary from "../ErrorBoundary/ErrorBoundary";
|
|
||||||
|
|
||||||
interface IconGridItemProps extends IconProps {
|
interface IconGridItemProps extends IconProps {
|
||||||
index: number;
|
index: number;
|
||||||
@@ -87,11 +86,9 @@ const IconGridItem: React.FC<IconGridItemProps> = (props) => {
|
|||||||
<Icon />
|
<Icon />
|
||||||
<p>{name}</p>
|
<p>{name}</p>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
<ErrorBoundary>
|
|
||||||
<AnimatePresence initial={false}>
|
<AnimatePresence initial={false}>
|
||||||
{isOpen && <InfoPanel {...props} />}
|
{isOpen && <InfoPanel {...props} />}
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
</ErrorBoundary>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user