|
@@ -5,23 +5,23 @@ import {
|
5
|
5
|
IonTitle,
|
6
|
6
|
IonToolbar,
|
7
|
7
|
IonFooter,
|
8
|
|
- IonNavLink,
|
9
|
|
- IonButton,
|
10
|
8
|
IonImg,
|
11
|
9
|
IonGrid,
|
12
|
10
|
IonRow,
|
13
|
11
|
IonCol,
|
14
|
12
|
IonButtons,
|
15
|
13
|
IonBackButton,
|
16
|
|
- useIonViewWillEnter
|
|
14
|
+ useIonViewWillEnter,
|
|
15
|
+ IonItem,
|
|
16
|
+ IonIcon
|
17
|
17
|
} from '@ionic/react';
|
18
|
18
|
import { useParams } from 'react-router';
|
19
|
19
|
import React, { useState } from 'react';
|
20
|
20
|
import { BioInfo, getMessage } from '../data/BioInfo';
|
21
|
21
|
import './Biography.css';
|
22
|
|
-import Questions from './Questions';
|
23
|
22
|
import EnciclopediaPR from '../assets/EnciclopediaPR.png';
|
24
|
23
|
import RobertoClemente from '../assets/RobertoClemente.jpg';
|
|
24
|
+import { square } from 'ionicons/icons';
|
25
|
25
|
|
26
|
26
|
const Biography: React.FC = () => {
|
27
|
27
|
const [bioinfo, setMessage] = useState<BioInfo>();
|
|
@@ -57,9 +57,9 @@ const Biography: React.FC = () => {
|
57
|
57
|
<p>{bioinfo.tags}</p>
|
58
|
58
|
<p>{bioinfo.Text1}</p>
|
59
|
59
|
<p>{bioinfo.Text2}</p>
|
60
|
|
- <IonNavLink routerDirection="forward" component={() => <Questions />}>
|
61
|
|
- <IonButton>Tomar quiz</IonButton>
|
62
|
|
- </IonNavLink>
|
|
60
|
+ <IonItem routerLink={`/Question`} detail={true}>
|
|
61
|
+ <IonIcon icon={square} />Tomar quiz
|
|
62
|
+ </IonItem>
|
63
|
63
|
</>
|
64
|
64
|
) : (
|
65
|
65
|
<div>Message not found</div>
|