This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const [showModal, setShowModal] = useState(''); | |
{showModal === SET_ACTIVE_MODAL.createLead && ( | |
<ModalCreateNewLead | |
handleClose={resetInfoCreateNewLead} | |
setShowModal={setShowModal} | |
setCloseCallbackType={setCloseCallbackType} | |
closeCallbackType={closeCallbackType} | |
errorCallback={errorCallback} | |
/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const SET_ACTIVE_MODAL = Object.freeze({ | |
schedule: 'schedule', | |
scheduleMerge: 'schedule-merge', | |
createLead: 'create-new-lead', | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styled, { css } from 'styled-components'; | |
import IconClose from '~/assets/img/svg/inline/icon-close.inline.svg'; | |
function getWidth(big, small, customWidth) { | |
if (customWidth) return `${customWidth}px`; | |
if (big) return '80%'; | |
if (small) return '50%'; | |
return '60%'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState, useRef } from 'react'; | |
import { createPortal } from 'react-dom'; | |
import PropTypes from 'prop-types'; | |
import usePortal from '~/components/Portal'; | |
import { | |
ModalCrm, | |
Overlay, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Tabela do Amaral</title> | |
</head> | |
<style> | |
/* reset css */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" | |
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"> | |
<!-- CDN do Bootstrap--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dados = []; | |
function delRegister(id) { | |
let canDelete = confirm("Deseja realmente remover o contato da agenda?") | |
if (canDelete) { | |
for (let i = 0; i < dados.length; i++) { | |
if (dados[i].ID == id) { | |
dados.splice(i, 1) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# curl + tee | |
curl --silent https://next.json-generator.com/api/json/get/NJafGjxXq | | |
jq '[.[] | {name: .name, category: .category}]' | | |
tee myfile.json | |
curl --silent https://next.json-generator.com/api/json/get/NJafGjxXq | | |
jq '[.[] | {name: .name, category: .category}]' | | |
tee myfile2.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//função que quero testar | |
export const fileToBase64 = file => | |
new Promise((resolve, reject) => { | |
const reader = new FileReader(); | |
reader.readAsDataURL(file); | |
reader.onload = () => { | |
resolve(reader.result); | |
}; | |
reader.onerror = error => { | |
reject(error); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// ... | |
"css.validate": false, | |
"less.validate": false, | |
"scss.validate": false, | |
"[javascriptreact]": { | |
"editor.codeActionsOnSave": { | |
"source.fixAll.stylelint": true | |
} | |
}, |