From dbe5a53b545e0eed842034f1d95b1e1142177d51 Mon Sep 17 00:00:00 2001 From: AlexisG <merkkur39@gmail.com> Date: Tue, 5 Nov 2024 15:40:30 +0100 Subject: [PATCH] feat: Intents target must be migrate too Forgot to migrate to React 18 cf https://github.com/cozy/mespapiers/pull/682 --- src/targets/intents/index.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/targets/intents/index.jsx b/src/targets/intents/index.jsx index b1a26fd6..6699b0a6 100644 --- a/src/targets/intents/index.jsx +++ b/src/targets/intents/index.jsx @@ -1,6 +1,5 @@ /* eslint-disable import/order */ import React from 'react' -import { render } from 'react-dom' import { RouterProvider, createHashRouter, @@ -74,5 +73,5 @@ document.addEventListener('DOMContentLoaded', () => { const intentId = new URLSearchParams(window.location.search).get('intent') const router = createHashRouter(makeRoutes({ client, intentId, ...rest })) - render(<RouterProvider router={router} />, root) + root.render(<RouterProvider router={router} />) })