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
// Entra quando a célula é clicada | |
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { | |
if let cell = collectionView.cellForItem(at: indexPath) as? CB3DSelectCell { | |
cell.select(animated: true) | |
// if cell.isSelected { | |
// cell.select(animated: false) | |
// if indexPath.row == 0 { | |
// self.dataprovider?.routeToSignUPMerchantPerson() | |
// } else { |
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 UIKit | |
extension UIView { | |
func anchorSize(height: NSLayoutDimension?, width: NSLayoutDimension?, multiplier: CGFloat) { | |
if let height = height { | |
heightAnchor.constraint(equalTo: height, multiplier: multiplier) | |
} | |
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 Foundation | |
protocol CriarUsuarioPresenter: class { | |
func success() | |
func failed() | |
} | |
class CriarUsuario { | |
var delegate: CriarUsuarioPresenter? | |
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 { FormikConsumer } from "formik"; | |
export const Debug = () => ( | |
<div | |
style={{ | |
margin: "3rem 0", | |
borderRadius: 4, | |
background: "#f6f8fa", |
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 { IoIosPin, IoMdHome } from 'react-icons/io'; | |
import { TiSortNumerically } from 'react-icons/ti'; | |
import { FaBuilding } from 'react-icons/fa'; | |
import { Form, InputGroup, FormControl } from 'react-bootstrap'; | |
import { Formik, FormikProps } from 'formik'; | |
import cep from 'cep-promise'; |
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
{touched.zipcode && !errors.zipcode | |
? setTimeout(() => { | |
cep(values.zipcode) | |
.then(response => { | |
setFieldTouched('zipcode', false); | |
console.log(response); | |
setFieldValue('street', response.street); | |
setFieldValue('city', response.city); | |
setFieldValue('state', response.state); | |
setFieldValue('neighborhood', response.neighborhood); |
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 Foundation | |
struct Character: Model { | |
let id: Int | |
let name, resultDescription: String | |
let modified: Date | |
let thumbnail: Image | |
let resourceURI: String | |
let comics, series: ComicsList | |
let stories: StoryList |
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 { Router } from 'react-router-dom' | |
import { createMemoryHistory } from 'history' | |
import faker from 'faker' | |
import { | |
render, | |
RenderResult, | |
fireEvent, | |
cleanup, | |
waitFor |
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 faker from 'faker' | |
import { AddAccount } from '@/domain/usecases' | |
import { mockAccountResultModel } from '@/domain/test' | |
export const mockAddAccountParams = (): AddAccount.Params => { | |
const password = faker.internet.password() | |
return { | |
fullName: faker.name.findName(), | |
username: faker.internet.userName(), | |
email: faker.internet.email(), |
OlderNewer