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, { JSXElementConstructor } from 'react' | |
| import { SVGProps } from 'react' | |
| export type IconProps = { | |
| color?: string | |
| } & SVGProps<SVGSVGElement> | |
| export const Alert: JSXElementConstructor<IconProps> = ({ color, ...rest }) => { | |
| return ( | |
| <svg |
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 { FormEvent, useState } from 'react'; | |
| function get () { | |
| const [mes, setMes] = useState(); | |
| const [ano, setAno] = useState(); | |
| function handleDate (e: FormEvent) { | |
| e.preventDefault(); | |
| diaInicial = new Date(ano, mes-1, 1).getDay(); |
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 novastarefas = tarefas.push(item) | |
| console.log(`Tarefas: ${novastarefas}`) |
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
| global.setCart([{ | |
| id: props.id | |
| quantity: Number(event.target.value) || '' | |
| }]) |
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 { Link } from 'react-router-dom' | |
| import { HeaderContainer } from "./Style" | |
| import HouseOutlinedIcon from '@material-ui/icons/HouseOutlined'; | |
| import ShoppingCartOutlinedIcon from '@material-ui/icons/ShoppingCartOutlined'; | |
| import PersonOutlineOutlinedIcon from '@material-ui/icons/PersonOutlineOutlined'; | |
| const Header = () => { | |
| return ( | |
| <HeaderContainer> |
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
| { | |
| "terminal.integrated.fontSize": 14, | |
| "workbench.iconTheme": "material-icon-theme", | |
| "workbench.startupEditor": "newUntitledFile", | |
| "polacode.backgroundColor": "#6633CC", | |
| "editor.tabSize": 2, | |
| "editor.fontSize": 16, |
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 api from '../../services/api' | |
| import { | |
| InputDescricao, | |
| MainContainer, | |
| ContainerPagamento, | |
| SelectEstilizado, | |
| InputServico, | |
| BotaoOferecerServico, | |
| InputDataEstilizado |
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 { createContext, ReactNode, useEffect, useState } from 'react' | |
| type Theme = 'light' | 'dark'; | |
| type ThemeContextProviderProps = { | |
| children: ReactNode; | |
| } | |
| type ThemeContextType = { | |
| theme: Theme; |