Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3295 | Rev 3297 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3295 Rev 3296
Línea 1... Línea 1...
1
import React, { useLayoutEffect } from 'react'
1
import React, { useLayoutEffect } from 'react'
2
import { useMatch } from 'react-router-dom'
2
import { useMatch } from 'react-router-dom'
3
import { useSelector } from 'react-redux'
3
import { useSelector } from 'react-redux'
Línea 4... Línea -...
4
 
-
 
5
import { useMediaQuery } from '@hooks'
-
 
6
 
4
 
7
import 'converse.js'
5
import 'converse.js'
8
import './converse.css'
6
import './converse.css'
Línea 9... Línea 7...
9
import './chat.css'
7
import './chat.css'
10
 
8
 
11
export default function Chat() {
-
 
Línea 12... Línea 9...
12
  const match = useMatch('/habits/*')
9
export default function Chat() {
13
  const isMobile = useMediaQuery('(max-width: 900px)')
10
  const match = useMatch('/habits/*')
14
 
11
 
15
  const {
12
  const {
Línea 50... Línea 47...
50
    return () => {
47
    return () => {
51
      converse.connection?.disconnect()
48
      converse.connection?.disconnect()
52
    }
49
    }
53
  }, [xmpp_hostname, xmpp_password, xmpp_username])
50
  }, [xmpp_hostname, xmpp_password, xmpp_username])
Línea -... Línea 51...
-
 
51
 
-
 
52
  console.log(match)
54
 
53
 
Línea 55... Línea 54...
55
  if (match && isMobile) return null
54
  if (match) return null
56
 
55