-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.js
39 lines (35 loc) · 895 Bytes
/
home.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import React, { useState, useContext } from "react";
import Axios from "axios";
import {
Row,
Container,
Col,
Input,
Button,
InputGroup,
InputGroupAddon
} from "reactstrap";
import UserCard from "../components/UserCard";
import Repos from "../components/Repos";
import { Redirect } from "react-router-dom";
import { UserContext } from "../context/UserContext";
import { toast } from "react-toastify";
return (
<Container>
<Row className=" mt-3">
<Col md="5">
<InputGroup>
<Input
type="text"
value=""
placeholder="Please provide the username"
/>
<InputGroupAddon addonType="append">
<Button color="primary">Fetch User</Button>
</InputGroupAddon>
</InputGroup>
</Col>
<Col md="7"></Col>
</Row>
</Container>
);