Spaces:
Sleeping
Sleeping
macbookpro
commited on
Commit
·
89bf64d
1
Parent(s):
d1cad4b
novos temas
Browse files- web/src/App.jsx +15 -3
web/src/App.jsx
CHANGED
@@ -40,6 +40,18 @@ function App() {
|
|
40 |
|
41 |
]);
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
const handleSubmit = async (e) => {
|
44 |
e.preventDefault();
|
45 |
setIsLoading(true);
|
@@ -132,9 +144,9 @@ function App() {
|
|
132 |
<SelectValue placeholder="Conteúdo" />
|
133 |
</SelectTrigger>
|
134 |
<SelectContent onChange={e => console.log(e)}>
|
135 |
-
|
136 |
-
<SelectItem value=
|
137 |
-
|
138 |
</SelectContent>
|
139 |
</Select>
|
140 |
<button className="h-10 bg-purple-500 rounded px-2.5 py-1 mt-5 hover:brightness-110 transition-all flex items-center justify-center disabled:hover:brightness-75 disabled:brightness-75"
|
|
|
40 |
|
41 |
]);
|
42 |
|
43 |
+
const subjects = [
|
44 |
+
{label:"Fisiologia", value: "fisiologia" },
|
45 |
+
{label:"Embriologia", value: "embriologia" },
|
46 |
+
{label:"Citologia", value: "citologia" },
|
47 |
+
{label:"Genética", value: "genetica" },
|
48 |
+
{label:"Botânica", value: "botanica" },
|
49 |
+
{label:"Zoologia", value: "zoologia" },
|
50 |
+
{label:"Morfologia", value: "morfologia" },
|
51 |
+
{label:"Ecologia", value: "ecologia" },
|
52 |
+
{label:"Biofísica", value: "biofisica" },
|
53 |
+
]
|
54 |
+
|
55 |
const handleSubmit = async (e) => {
|
56 |
e.preventDefault();
|
57 |
setIsLoading(true);
|
|
|
144 |
<SelectValue placeholder="Conteúdo" />
|
145 |
</SelectTrigger>
|
146 |
<SelectContent onChange={e => console.log(e)}>
|
147 |
+
subjects && subjects.map(({ label, value }) => (
|
148 |
+
<SelectItem key={value} value={value}>{label}</SelectItem>
|
149 |
+
))
|
150 |
</SelectContent>
|
151 |
</Select>
|
152 |
<button className="h-10 bg-purple-500 rounded px-2.5 py-1 mt-5 hover:brightness-110 transition-all flex items-center justify-center disabled:hover:brightness-75 disabled:brightness-75"
|