This file contains 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, { useState } from "react"; | |
import { Checkbox, FormControl, FormControlLabel, Grid, InputAdornment, InputLabel, TextField, Typography } from "@mui/material"; | |
import { CheckBoxChecked, CheckBoxUnChecked } from "@components/Icons"; | |
interface TextFieldCheckBoxProps { | |
id?: string; | |
name: string; | |
label?: string; | |
value: string; | |
options: string[]; |
This file contains 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 { useState, useMemo, useCallback, useEffect } from "react"; | |
import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown"; | |
import { | |
FormControl, | |
Select, | |
MenuItem, | |
Checkbox, | |
Typography, | |
ListItemText, | |
} from "@mui/material"; |
This file contains 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 from 'react'; | |
interface Props { | |
children?: React.ReactNode; | |
} | |
const Component: React.FC<Props> = ({ children, ...props }) => { | |
return ( | |
<>{children}</> | |
) |
This file contains 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
Show hidden characters
"React Componet default ArrowFunction" : { | |
"prefix": "rfx", | |
"body" : [ | |
"import React from 'react';\n", | |
"interface Props {", | |
"\tchildren?: React.ReactNode;", | |
"}\n", | |
"const Component: React.FC<Props> = ({ children, ...props }) => {", | |
"\treturn (", | |
"\t\t<>{children}</>", |
This file contains 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 from "react"; | |
import { Box, Button, Drawer, DrawerProps } from "@material-ui/core"; | |
import { createStyles, makeStyles, Theme } from "@material-ui/core/styles"; | |
type Anchor = "top" | "left" | "bottom" | "right"; | |
interface ButtomDrawer extends DrawerProps { | |
label: string; | |
anchortype: Anchor; | |
} |
This file contains 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
<main> | |
<!-- sign-up section --> | |
<section class="sign-up"> | |
<!-- the form itself --> | |
<form class="sign-up__form" action="" method="post" novalidate> | |
<div class="form__input"> | |
<input class="" type="text" name="nome" id="nome" placeholder="Nome" value="" required> | |
<span class="warning-icon">!</span> | |
<p class="warning">O campo não pode estar vazio</p> | |
</div> |
This file contains 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
<main> | |
<!-- sign-up section --> | |
<section class="sign-up"> | |
<!-- the form itself --> | |
<form class="sign-up__form" action="" method="post" novalidate> | |
<div class="form__input"> | |
<input class="" type="text" name="nome" id="nome" placeholder="Nome" value="" required> | |
<span class="warning-icon">!</span> | |
<p class="warning">O campo não pode estar vazio</p> | |
</div> |
This file contains 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 sendData = async () => { | |
const url = 'https://pontual.cvcrm.com.br/api/cvio/lead'; | |
var request = new Request(url, { | |
method: "POST", | |
header: [ | |
{ | |
key: "email", | |
value: "[email protected]", | |
type: "text" |
This file contains 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
create table cliente ( | |
login SERIAL PRIMARY KEY, | |
nome_cli varchar (40) not null, | |
sobrenome_cli varchar (40) not null, | |
log_end_cli varchar (80) not null, | |
cid_end_cli varchar (40) not null, | |
uf_end_cli varchar (10) not null, | |
tel_cli varchar (30) not null, | |
email_cli varchar (40) not null, | |
senha_cli varchar (40) not null |
This file contains 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 { | |
Grid, | |
Paper, | |
Avatar, | |
TextField, | |
Button, | |
Typography, | |
Link, | |
Box, | |
} from "@mui/material"; |