Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1355 Rev 1356
Línea 1... Línea 1...
1
import React, { useEffect } from 'react'
1
import React from 'react'
-
 
2
import { Container, Typography } from '@mui/material'
-
 
3
 
2
import { axios } from 'utils/index'
4
import useFetch from '../../hooks/useFetch'
Línea 3... Línea 5...
3
 
5
 
4
const TermsAndConditionsPage = () => {
-
 
5
  useEffect(() => {
6
const TermsAndConditionsPage = () => {
6
    axios.get('/terms-and-conditions').then((res) => console.log(res))
-
 
7
    axios.get('/helpers/footer').then((res) => console.log(res))
-
 
Línea -... Línea 7...
-
 
7
  const { data } = useFetch('/terms-and-conditions')
-
 
8
 
8
  }, [])
9
  return (
-
 
10
    <Container>
-
 
11
      <Typography variant='h1'>{data.title}</Typography>
-
 
12
      <div dangerouslySetInnerHTML={{ __html: data.content }} />
9
 
13
    </Container>
Línea 10... Línea 14...
10
  return <div>TermsAndConditionsPage</div>
14
  )