Open ~/.bash_profile in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {| import React, { useReducer } from 'react'; | |
| import { login } from './utils'; | |
| const initialState: LoginState = { | |
| username: '', | |
| password: '', | |
| isLoading: false, | |
| error: '', | |
| isLoggedIn: false, | |
| variant: 'login', |
| // A helper for RTL | |
| export const expandSelect = selectInput => { | |
| if (_.toLower(selectInput.tagName) !== 'input') { | |
| selectInput = selectInput.querySelector('input') | |
| } | |
| fireEvent.mouseDown(selectInput) | |
| fireEvent.focus(selectInput) | |
| } | |
| export const showInfoTip = async infoTip => { |
| # set the base image to Debian | |
| # https://hub.docker.com/_/debian/ | |
| FROM debian:latest | |
| # replace shell with bash so we can source files | |
| RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
| # update the repository sources list | |
| # and install dependencies | |
| RUN apt-get update \ |
| import org.junit.Assert; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; | |
| import org.mockito.Mock; | |
| import org.mockito.runners.MockitoJUnitRunner; | |
| import java.util.Map; | |
| import static org.mockito.Mockito.doReturn; | |
| import static org.mockito.Mockito.when; | |
| @RunWith(MockitoJUnitRunner.class) |
| import React, { Component } from 'react' | |
| const sampleList = [{ | |
| name: 'Punith', | |
| link: '[email protected]' | |
| }, | |
| { | |
| name: 'Rama', | |
| link: '[email protected]' | |
| }]; |
| import React, { Component } from 'react'; | |
| import './App.css'; | |
| import { BrowserRouter as Router } from 'react-router-dom'; | |
| import Nav from './Nav'; | |
| import LoginForm from './components/LoginForm'; | |
| import Welcome from './components/Welcome'; | |
| import { getUsers, validateUser } from './controllers/LoginController'; | |
| class App extends Component { | |
| constructor(props) { |
| import axios from 'axios'; | |
| const getUsers = (id) => { | |
| return axios.get('http://localhost:3000/users/'.concat(id)); | |
| } | |
| const validateUser = (userName, password) => { | |
| // if (userName.length > 0 && password.length > 0) { | |
| // return true; | |
| // } |