Merge pull request #23940 from overleaf/td-react-18

Upgrade to React 18

GitOrigin-RevId: 9b81936e6eea2bccd97fe5c2c5841f0b946371b8
This commit is contained in:
Tim Down
2025-05-02 08:05:29 +00:00
committed by Copybot
parent 4464320757
commit 7abafb01ea
213 changed files with 2469 additions and 2105 deletions
@@ -190,7 +190,7 @@ export const ChatContext = createContext<
| undefined
>(undefined)
export const ChatProvider: FC = ({ children }) => {
export const ChatProvider: FC<React.PropsWithChildren> = ({ children }) => {
const chatEnabled = getMeta('ol-chatEnabled')
const clientId = useRef<string>()
@@ -283,7 +283,7 @@ export const ChatProvider: FC = ({ children }) => {
])
const sendMessage = useCallback(
content => {
(content: string) => {
if (!chatEnabled) {
debugConsole.warn(`chat is disabled, won't send message`)
return