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 { useState, createContext, useContext } from 'react' | |
| // Lift state up -> Levantar o estado | |
| // Context API | |
| // Prop Drilling | |
| type CartContextType = { | |
| productsInCart: string[]; | |
| addProductToCart: (name: string) => void; |
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 teste = Teste(); |
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 { spawn } from 'child_process'; | |
| spawn("C:/Program Files/Donkey Kong/game.exe") |
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 Ws from '@adonisjs/websocket-client'; | |
| import { toast } from 'react-toastify'; | |
| import { eventChannel } from 'redux-saga'; | |
| import { all, takeLatest, call, take, put, select } from 'redux-saga/effects'; | |
| import { history } from '../../../services'; | |
| import { | |
| subscribeUserRequest, | |
| subscribeChatRequest, | |
| subscribeChatSuccess, |
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
| { | |
| "categories": [ | |
| { "id": "camisetas", "title": "Camisetas" }, | |
| { "id": "calcas", "title": "Calças" } | |
| ], | |
| "products": [ | |
| { "id": 1, "title": "Camiseta Front-end", "price": 79.9, "category_id": "camisetas", "slug": "camiseta-front-ends"}, | |
| { "id": 2, "title": "Camiseta CSharpolin", "price": 69.9, "category_id": "camisetas", "slug": "camiseta-csharpolin"}, | |
| { "id": 3, "title": "Calça preta back-end", "price": 129.9, "category_id": "calcas", "slug": "calca-preta-back-end"}, | |
| { "id": 4, "title": "Calça azul do React", "price": 109.9, "category_id": "calcas", "slug": "calca-azul-react"} |
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
| return ( | |
| <Flex | |
| as="main" | |
| height="100vh" | |
| justifyContent="center" | |
| alignItems="center" | |
| > | |
| <Flex | |
| as="form" | |
| onSubmit={handleSignUpToNewsletter} |
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
| name: CI | |
| on: | |
| push: | |
| branches: [master] | |
| env: | |
| BUCKET: reactdeploy.getomni.dev | |
| jobs: |
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
| .DayPicker { | |
| background: #28262e; | |
| border-radius: 10px; | |
| } | |
| .DayPicker-wrapper { | |
| padding-bottom: 0; | |
| } | |
| .DayPicker, |
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 { transactions, balance } = response.data; | |
| const newTransactions = transactions.map(transaction => { | |
| return { | |
| ...transaction, | |
| formattedValue: formatValue(transaction.value), | |
| // outros campos aqui | |
| } | |
| }); |