diff --git a/packages/msw-devtools/src/DevTools.tsx b/packages/msw-devtools/src/DevTools.tsx index b37dbf3..e5917c6 100644 --- a/packages/msw-devtools/src/DevTools.tsx +++ b/packages/msw-devtools/src/DevTools.tsx @@ -1,6 +1,6 @@ import "./index.css" -import { useCallback } from "react" +import { useCallback, useId } from "react" import { useTranslation } from "react-i18next" import { FaXmark } from "react-icons/fa6" @@ -22,10 +22,21 @@ const DevTools = ({ initialOpen = true }: { initialOpen?: boolean }) => { const toggle = useCallback(() => setIsOpened((prev) => !prev), [setIsOpened]) const close = useCallback(() => setIsOpened(false), [setIsOpened]) + const layoutId = useId() + return ( - - + + {children}