preparing to deploy
This commit is contained in:
parent
6ee7e2a375
commit
d92285afe5
@ -17,6 +17,7 @@ import { ClientsView } from '../../styles/layouts/clients/ClientsView';
|
||||
import PageTitle from '../../components/pageTitle/PageTitle';
|
||||
import ConfirmModal from '../../components/modal/ConfirmModal';
|
||||
import { ConfirmModalView } from '../../styles/layouts/modals/confirmModalView';
|
||||
import { api } from '../../services/api';
|
||||
|
||||
const style = {
|
||||
position: 'absolute' as const,
|
||||
@ -40,12 +41,21 @@ export default function clients() {
|
||||
|
||||
const [openModal, setOpenModal] = useState(false)
|
||||
|
||||
function handleCreateClient() {
|
||||
api.post('', {
|
||||
"name": "Teste3",
|
||||
"email": "teste3@gmail.com",
|
||||
"password": "password",
|
||||
"password_confirmation": "password",
|
||||
"client_id": 222
|
||||
})
|
||||
}
|
||||
|
||||
return (
|
||||
<div style={{display: 'flex', flexDirection: 'column', width: '100%'}}>
|
||||
<ClientsView>
|
||||
<Header name='' />
|
||||
<PageTitle title='Clientes' subtitle='Clientes Smart Energia'/>
|
||||
{/* <BasicButton title='Adicionar' onClick={handleOpen}/> */}
|
||||
<div className='buttons'>
|
||||
<button className='btn2' onClick={handleOpen}>Adicionar</button>
|
||||
<button className='btn1' onClick={() => setOpenModalInativar(true)}>Inativar</button>
|
||||
|
||||
@ -144,15 +144,9 @@ export default function ResumoOperacao() {
|
||||
</tbody>
|
||||
</table>
|
||||
<div className='btn'>
|
||||
{/* <a href={Teste} download="dowload.csv"> */}
|
||||
{/* <BasicButton title='Baixar PDF' /> */}
|
||||
{/* </a> */}
|
||||
|
||||
<CSVLink data={csvData} filename="Arquivo_Teste_Smart_Energia">
|
||||
|
||||
<BasicButton title='Baixar CSV' onClick={function (): void {
|
||||
throw new Error('Function not implemented.');
|
||||
}}/>
|
||||
<BasicButton title='Baixar CSV' onClick={() => console.log()}/>
|
||||
</CSVLink>
|
||||
</div>
|
||||
</TableView>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user