opsmill / infrahub

Infrahub - A new approach to Infrastructure Management
https://opsmill.com/
GNU Affero General Public License v3.0
148 stars 7 forks source link

prevent console error when displaying a toast message #3670

Closed bilalabbad closed 2 weeks ago

bilalabbad commented 3 weeks ago

prevent error on console:

Warning: React does not recognize the `toastProps` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `toastprops` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
    at div
    at Alert (http://localhost:8080/src/components/ui/alert.tsx:35:11)
    at div
    at div
    at div
    at http://localhost:8080/node_modules/.vite/deps/react-toastify.js?v=70720234:51:21
    at N (http://localhost:8080/node_modules/.vite/deps/react-toastify.js?v=70720234:243:89)
    at div
    at div
    at http://localhost:8080/node_modules/.vite/deps/react-toastify.js?v=70720234:255:73
    at ApolloProvider (http://localhost:8080/node_modules/.vite/deps/@apollo_client.js?v=c378b5d2:6212:19)
    at QueryParamProviderInner (http://localhost:8080/node_modules/.vite/deps/use-query-params.js?v=39e5681e:740:3)
    at ReactRouter6Adapter (http://localhost:8080/node_modules/.vite/deps/use-query-params_adapters_react-router-6.js?v=26aaf94c:18:3)
    at QueryParamProvider (http://localhost:8080/node_modules/.vite/deps/use-query-params.js?v=39e5681e:759:3)
    at Router (http://localhost:8080/node_modules/.vite/deps/chunk-3PGGYOGI.js?v=0deee5a7:3938:15)
    at BrowserRouter (http://localhost:8080/node_modules/.vite/deps/chunk-3PGGYOGI.js?v=0deee5a7:4678:5)
    at Infrahub (http://localhost:8080/src/index.tsx:38:21)
    at ErrorBoundary (http://localhost:8080/node_modules/.vite/deps/react-error-boundary.js?v=77bb04e2:18:5)
    at Provider (http://localhost:8080/node_modules/.vite/deps/chunk-F65DJ7I5.js?v=0deee5a7:625:3)