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