|
@@ -4,8 +4,21 @@ import {
|
4
|
4
|
IonPage,
|
5
|
5
|
IonTitle,
|
6
|
6
|
IonToolbar,
|
|
7
|
+ IonCard,
|
7
|
8
|
} from "@ionic/react";
|
8
|
|
-import ListComponent from "../components/ListComponent";
|
|
9
|
+import DropdownComponent from "../components/DropdownComponent";
|
|
10
|
+import "../intefaces";
|
|
11
|
+
|
|
12
|
+const categories = [
|
|
13
|
+ {
|
|
14
|
+ name: "Paternidad",
|
|
15
|
+ listItems: ["Consejo de Paternidad 1", "Consejo de Paternidad 2"],
|
|
16
|
+ },
|
|
17
|
+ {
|
|
18
|
+ name: "Abuso Sexual",
|
|
19
|
+ listItems: ["Consejo de Abuso Sexual 1", "Consejo de Abuso Sexual 2"],
|
|
20
|
+ },
|
|
21
|
+];
|
9
|
22
|
|
10
|
23
|
const AdviceListPage: React.FC = () => {
|
11
|
24
|
return (
|
|
@@ -21,7 +34,9 @@ const AdviceListPage: React.FC = () => {
|
21
|
34
|
<IonTitle size="large">Consejos</IonTitle>
|
22
|
35
|
</IonToolbar>
|
23
|
36
|
</IonHeader>
|
24
|
|
- <ListComponent laws={["Consejo 1", "Consejo 2"]} />
|
|
37
|
+ <IonCard>
|
|
38
|
+ <DropdownComponent category={categories} />
|
|
39
|
+ </IonCard>
|
25
|
40
|
</IonContent>
|
26
|
41
|
</IonPage>
|
27
|
42
|
);
|