mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Migrate layout context to TypeScript (#15275)
Migrate layout context to TypeScript GitOrigin-RevId: ce453bfb67f7c36176fa24144413b556cd3c117e
This commit is contained in:
@@ -22,7 +22,9 @@ type ConnectionContextValue = {
|
||||
registerUserActivity: () => void
|
||||
}
|
||||
|
||||
const ConnectionContext = createContext<ConnectionContextValue | null>(null)
|
||||
const ConnectionContext = createContext<ConnectionContextValue | undefined>(
|
||||
undefined
|
||||
)
|
||||
|
||||
export const ConnectionProvider: FC = ({ children }) => {
|
||||
const [connectionManager] = useState(() => new ConnectionManager())
|
||||
|
||||
Reference in New Issue
Block a user