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, { useRef, useCallback, useEffect } from "react"; | |
import ReactInputMask from "react-input-mask"; | |
import { useField } from "@unform/core"; | |
export default function InputMaskT({ name, mask, ...rest }) { | |
const inputRef = useRef(null); | |
const { fieldName, registerField, defaultValue, error } = useField(name); | |
console.log(inputRef); |
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
TYPEORM_MIGRATION = ./src/database/migrations/*.ts | |
TYPEORM_ENTITIES = ./src/models/*.ts | |
TYPEORM_MIGRATION_DIR = ./src/database/migrations |
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 from "react"; | |
import { | |
Route, | |
Redirect, | |
RouteComponentProps, | |
RouteProps, | |
} from "react-router-dom"; | |
import AuthLayout from "../pages/_layouts/auth"; | |
import DefaultLayout from "../pages/_layouts/default"; |
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
{ | |
"keyboard.dispatch": "keyCode", | |
// Define o tema do VSCode | |
"workbench.colorTheme": "Omni", | |
// Aumenta a fonte do terminal | |
"terminal.integrated.fontSize": 14, | |
// Define o tema dos icones na sidebar | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.startupEditor": "newUntitledFile", | |
// Configura tamanho e familia da fonte |
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, { useState, useEffect } from "react"; | |
import "./app.css"; | |
function App() { | |
const valorInicial = { | |
nome: "", | |
email: "", | |
usuario: "", | |
}; |
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
sadasdasd |
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
sadasdasd |
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 default function Table() { | |
const alunos = [ | |
{ id: 1, nome: "Maria" }, | |
{ id: 2, nome: "Jose" }, | |
{ id: 3, nome: "Paulo" }, | |
{ id: 4, nome: "Pedro" }, | |
]; | |
const [ativo, setAtivo] = useState(0); |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Launch", | |
"protocol": "inspector", | |
"port": 8756 | |
}, |
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 { addBabelPlugin, override } = require('customize-cra'); | |
module.exports = override( | |
addBabelPlugin([ | |
'babel-plugin-root-import', | |
{ | |
rootPathSuffix: 'src', | |
}, | |
]) | |
); |
NewerOlder