eliam.ruiz 1 ano atrás
pai
commit
63c50d8956

+ 11
- 9
src/App.tsx Ver arquivo

@@ -67,26 +67,28 @@ const App: React.FC = () => (
67 67
           <Route path="/laws">
68 68
             <LawListPage />
69 69
           </Route>
70
+
70 71
           <Route path="/article/:articleId" component={ArticlePage} />
71
-          </Route>
72
-            <LazosPage />
72
+
73 73
           <Route path="/services/lazos">
74
+            <LazosPage />
74 75
           </Route>
75 76
 
76
-            <CrecemosPage />
77 77
           <Route path="/services/crecemos">
78
-
78
+            <CrecemosPage />
79 79
           </Route>
80
+
81
+          <Route path="/services/supervisadas">
80 82
             <SupervisadasPage />
81 83
           </Route>
82 84
 
83
-          <Route path="/services/supervisadas">
84
-            <CasitaPage />
85
-          <Route path="/services/casita">
85
+          <Route path="/about">
86
+            <AboutListPage />
87
+          </Route>
86 88
 
89
+          <Route path="/services/casita">
90
+            <CasitaPage />
87 91
           </Route>
88
-            <AboutListPage />
89
-          <Route path="/about">
90 92
 
91 93
           <Route exact path="/">
92 94
             <Redirect to="/home" />

+ 0
- 3
src/components/DropdownComponent.css Ver arquivo

@@ -1,3 +0,0 @@
1
-.accordion-list-container {
2
-    width: 100%;
3
-}

+ 0
- 34
src/components/DropdownComponent.tsx Ver arquivo

@@ -1,34 +0,0 @@
1
-import {
2
-  IonAccordion,
3
-  IonAccordionGroup,
4
-  IonItem,
5
-  IonLabel,
6
-} from "@ionic/react";
7
-import ListComponent from "../components/ListComponent";
8
-import { Category } from "../types";
9
-import "./DropdownComponent.css";
10
-
11
-const DropdownComponent: React.FC<{
12
-  category: Category[];
13
-}> = (props) => {
14
-  const category = props.category;
15
-  return (
16
-    <IonAccordionGroup>
17
-      {category.map((catItem: Category, index) => {
18
-        return (
19
-          <IonAccordion value={`${index}`}>
20
-            <IonItem slot="header" color="light">
21
-              <IonLabel>{catItem.name}</IonLabel>
22
-            </IonItem>
23
-            <IonItem slot="content">
24
-              <div className="accordion-list-container">
25
-                <ListComponent items={catItem.listItems} />
26
-              </div>
27
-            </IonItem>
28
-          </IonAccordion>
29
-        );
30
-      })}
31
-    </IonAccordionGroup>
32
-  );
33
-};
34
-export default DropdownComponent;

+ 0
- 1
src/pages/AboutListPage.tsx Ver arquivo

@@ -7,7 +7,6 @@ import {
7 7
   IonTitle,
8 8
   IonToolbar,
9 9
 } from "@ionic/react";
10
-import ListComponent from "../components/ListComponent";
11 10
 
12 11
 const AboutListPage: React.FC = () => {
13 12
   return (