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, { useState, useEffect, useContext, createContext } from "react"; | |
import firebase from "firebase/app"; | |
import "firebase/auth"; | |
import firebaseConfig from "../firebase/firebaseConfig"; | |
if (firebase.apps.length === 0) { | |
firebase.initializeApp(firebaseConfig); | |
} | |
const authContext = createContext(); |
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 { useState, useEffect } from "react"; | |
const useForm = ({ initialValues }) => { | |
console.log(initialValues); | |
const [fields, setFields] = useState(initialValues); | |
const onChange = event => { | |
const { value, name } = event.target; | |
setFields({ ...fields, [name]: value }); |
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 { Collapse, Icon, Select } from 'antd'; | |
import { Form, Input, Button, message } from 'antd'; | |
import AddItemInput from './AddItemInput' | |
import ListSubStation from './ListSubStation' | |
import SaveLocationForm from './SaveLocationForm' | |
import ClientService from '../../../clientService' | |
const { Panel } = Collapse; |
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
<html> <div ng-app="myApp" ng-controller="myController"> | |
<h3>DATOS DE LA PERSONA:<h3> | |
<input ng-model="person.name"></input> | |
<select id="typeperson" ng-model="person.typeperson" ng-change="changetypedocument()"> | |
<option ng-repeat="item in typeperson" value="{{item.id}}">{{item.name}}</option> | |
</select> | |
<select name="typedocument" id="typedocument" ng-model="person.typedocument" > | |
<option ng-repeat="item in typedocument" value="{{item.id}}">{{item.name}} | |
</select> | |
<button ng-click="load()">Cargar</button> |