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 PropTypes from 'prop-types' | |
| import { checkIsAuthenticated, authSignUp, authLogin, authLogout } from '../../services/auth' | |
| export const AuthContext = React.createContext({}) | |
| export default function Auth({ children }) { | |
| const [isAuthenticated, setIsAuthenticated] = useState(false) | |
| const [isLoading, setIsLoading] = useState(true) |
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
| (ns final.exercicios | |
| (:require [final.data :as data] | |
| [clojure.set :as c-set])) | |
| ;; Criar funcao que, dado um vetor de clientes, deve atualizar o endereco de um cliente e retorna o vetor de clientes. | |
| ;; A funcao deve atualizar o endereco apenas com os valores presentes no mapa do novo endereco. | |
| ;; Para saber a posicao do cliente no vetor pode usar (.indexOf <vetor> <elemento>). | |
| (defn atualiza-endereco |
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
| (ns final.exercicios | |
| (:require [final.data :as data])) | |
| ;; Criar funcao que, dado um vetor de clientes, deve atualizar o endereco de um cliente e retorna o vetor de clientes. | |
| ;; A funcao deve atualizar o endereco apenas com os valores presentes no mapa do novo endereco. | |
| ;; Para saber a posicao do cliente no vetor pode usar (.indexOf <vetor> <elemento>). | |
| (defn busca-cliente | |
| [clientes id-cliente] |
OlderNewer