From b0d0f78ec4b49c793f1e9880a0bc401195cd7deb Mon Sep 17 00:00:00 2001 From: Geraldo Homero Date: Sat, 10 Aug 2024 21:24:27 -0300 Subject: [PATCH] Adiciona antdm, transforma as vozes em lista e resolve carregamento das vozes --- app/components/listaVozes.tsx | 76 +- app/components/textInput.tsx | 4 +- app/components/theme.tsx | 9 - app/components/voiceDetails.tsx | 81 -- app/components/voiceSelect.tsx | 134 +++- app/globals.css | 116 +-- app/page.module.css | 228 ------ app/page.tsx | 10 +- package-lock.json | 1235 ++++++++++++++++++++++++------- package.json | 4 +- 10 files changed, 1135 insertions(+), 762 deletions(-) delete mode 100644 app/components/theme.tsx delete mode 100644 app/components/voiceDetails.tsx delete mode 100644 app/page.module.css diff --git a/app/components/listaVozes.tsx b/app/components/listaVozes.tsx index 76cc990..f6db171 100644 --- a/app/components/listaVozes.tsx +++ b/app/components/listaVozes.tsx @@ -1,12 +1,13 @@ "use client"; import React, { useEffect, useState } from 'react'; -import { CssBaseline, Container, Grid, Button, ThemeProvider, CircularProgress } from '@mui/material'; -import TextInput from './textInput'; -import VoiceSelect from './voiceSelect'; -import VoiceDetails from './voiceDetails'; -import darkTheme from './theme'; +import { Layout, Row, Col, Spin, Input, Typography } from 'antd'; import { Voice } from '../types/voice'; +import VoiceSelect from './voiceSelect'; + +const { Header, Content } = Layout; +const { TextArea } = Input; +const { Title } = Typography; const fetchVoices = async (setVozes: React.Dispatch>, setLoadingVoiceSelect: React.Dispatch>) => { setLoadingVoiceSelect(true); @@ -89,61 +90,40 @@ const ListaVozes: React.FC = () => { }, []); return ( - - - - - - +
+ App Masters +
+ + + +