OlympusDAO / olympus-frontend

MIT License
289 stars 694 forks source link

Invalid prop 'children' #2797

Open 0xJem opened 1 year ago

0xJem commented 1 year ago

Warning in the console:

rning: Failed prop type: Invalid prop children supplied to ForwardRef(Modal2). Expected an element that can hold a ref. Did you accidentally use a plain function component for an element instead? For more information see https://mui.com/r/caveat-with-refs-guide

0xJem commented 1 year ago
Warning: Failed prop type: Invalid prop `children` supplied to `ForwardRef(Modal2)`. Expected an element that can hold a ref. Did you accidentally use a plain function component for an element instead? For more information see https://mui.com/r/caveat-with-refs-guide
    at Modal2 (http://localhost:5173/node_modules/.vite/deps/chunk-ICBGAVFH.js?v=7749c979:5510:21)
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at exports.Modal (http://localhost:5173/node_modules/.vite/deps/@olympusdao_component-library.js?v=7749c979:1774:19)
    at ExpandedChart (http://localhost:5173/src/components/Chart/ExpandedChart.tsx?t=1694683299734:24:3)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at ChartCard (http://localhost:5173/src/views/TreasuryDashboard/components/Graph/ChartCard.tsx:27:122)
    at Chart (http://localhost:5173/src/components/Chart/Chart.tsx:599:3)
    at LiquidBackingPerOhmComparisonGraph (http://localhost:5173/src/views/TreasuryDashboard/components/Graph/LiquidBackingComparisonGraph.tsx?t=1694682921342:28:3)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Paper2 (http://localhost:5173/node_modules/.vite/deps/chunk-J3CP2M3Q.js?v=7749c979:147:21)
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Transition2 (http://localhost:5173/node_modules/.vite/deps/chunk-TFNPEYFL.js?v=7749c979:260:34)
    at Zoom2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:14700:21)
    at J (http://localhost:5173/node_modules/.vite/deps/@olympusdao_component-library.js?v=7749c979:187:25)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at MetricsDashboard (http://localhost:5173/src/views/TreasuryDashboard/TreasuryDashboard.tsx:40:37)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Box3 (http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:4980:19)
    at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3060:5)
    at Outlet (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3388:26)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Container3 (http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:6660:19)
    at PageWrapper (http://localhost:5173/src/views/TreasuryDashboard/TreasuryDashboard.tsx:316:25)
    at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3060:5)
    at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3448:5)
    at TreasuryDashboard
    at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3060:5)
    at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3448:5)
    at Suspense
    at div
    at div
    at ThemeProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:5657:5)
    at ThemeProvider3 (http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:5750:5)
    at ThemeProvider (http://localhost:5173/node_modules/.vite/deps/chunk-JTHZMMNC.js?v=7749c979:342:12)
    at div
    at ModalProvider (http://localhost:5173/node_modules/.vite/deps/@rainbow-me_rainbowkit.js?v=7749c979:7824:26)
    at TransactionStoreProvider (http://localhost:5173/node_modules/.vite/deps/@rainbow-me_rainbowkit.js?v=7749c979:4330:3)
    at RainbowKitChainProvider (http://localhost:5173/node_modules/.vite/deps/@rainbow-me_rainbowkit.js?v=7749c979:4152:3)
    at RainbowKitProvider (http://localhost:5173/node_modules/.vite/deps/@rainbow-me_rainbowkit.js?v=7749c979:4954:3)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at App (http://localhost:5173/src/App.tsx:118:3)
    at StyledEngineProvider (http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:3126:5)
    at Router (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3395:15)
    at HashRouter (http://localhost:5173/node_modules/.vite/deps/chunk-YQU6SJAB.js?v=7749c979:368:5)
    at Provider (http://localhost:5173/node_modules/.vite/deps/react-redux.js?v=7749c979:814:3)
    at QueryClientProvider (http://localhost:5173/node_modules/.vite/deps/chunk-SWPLUQVK.js?v=7749c979:2732:3)
    at ReactQueryProvider (http://localhost:5173/src/lib/react-query.tsx:42:3)
    at QueryClientProvider (http://localhost:5173/node_modules/.vite/deps/chunk-W24DIHYJ.js?v=7749c979:2703:3)
    at WagmiConfig (http://localhost:5173/node_modules/.vite/deps/chunk-W24DIHYJ.js?v=7749c979:3117:3)
    at Root
0xJem commented 1 year ago

@brightiron have you seen this before?

0xJem commented 1 year ago

I think it has something to do with the Modal from the component-library