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 { render, fireEvent, waitFor } from '@testing-library/react'; | |
| import { FiMail } from 'react-icons/fi'; | |
| import colors from '~/styles/colors'; | |
| import Input from '~/components/Input'; | |
| jest.mock('@unform/core', () => ({ |
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
Show hidden characters
| { | |
| "env": { | |
| "browser": true, | |
| "es2020": true | |
| }, | |
| "extends": [ | |
| "plugin:react/recommended", | |
| "airbnb", | |
| "plugin:@typescript-eslint/recommended", | |
| "prettier/@typescript-eslint", |
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, { useCallback } from "react"; | |
| import debounce from "lodash/debounce"; | |
| import AsyncSelect from "react-select/async"; | |
| import axios from "axios"; | |
| const App = (props) => { | |
| const options = [ | |
| { label: "Option 1", value: 1 }, | |
| { label: "Option 2", value: 2 }, | |
| { label: "Option 3", value: 3 } |
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
| { | |
| // Remember install the Debugger for Microsoft Edge Extension. | |
| // https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-edge | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "edge", | |
| "request": "launch", | |
| "name": "Launch Edge against localhost", | |
| "url": "http://localhost:3000", |
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
| interface User { | |
| email: string; | |
| password: string; | |
| avatar_url?: string; | |
| } | |
| // Partial<Type> | |
| type PartialUser = Partial<User>; | |
| /** | |
| type PartialUser = { |
OlderNewer
