Skip to content

Commit

Permalink
fix scope issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JHurdle91 committed Oct 21, 2021
1 parent a72dc38 commit bd58728
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 8 deletions.
3 changes: 3 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import React from "react";

import PostList from "./components/PostList";

import "bootstrap/dist/css/bootstrap.min.css";
import "./App.css";

Expand Down
2 changes: 2 additions & 0 deletions src/Routes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from "react";
import { BrowserRouter, Switch, Route } from "react-router-dom";

import App from "./App";
import Navbar from "./components/Navbar";
import PostCreate from "./components/PostCreate";
Expand Down
1 change: 1 addition & 0 deletions src/components/Comment.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { useParams } from "react-router-dom";

import UserService from "../services/user.service";
Expand Down
2 changes: 1 addition & 1 deletion src/components/CommentForm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useEffect } from "react";
import React, { useState, useEffect } from "react";
import { useParams } from "react-router-dom";

import AuthService from "../services/auth.service";
Expand Down
1 change: 1 addition & 0 deletions src/components/Comments.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import uniqid from "uniqid";

import Comment from "./Comment";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Login.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useRef } from "react";
import React, { useState, useRef } from "react";
import Form from "react-validation/build/form";
import Input from "react-validation/build/input";
import CheckButton from "react-validation/build/button";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useEffect } from "react";
import React, { useState, useEffect } from "react";
import { Link } from "react-router-dom";

import AuthService from "../services/auth.service";
Expand Down
2 changes: 1 addition & 1 deletion src/components/PostCreate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useEffect } from "react";
import React, { useState, useEffect } from "react";

import PostForm from "./PostForm";
import PostFormButtons from "./PostFormButtons";
Expand Down
2 changes: 1 addition & 1 deletion src/components/PostDetail.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useEffect, useCallback } from "react";
import React, { useState, useEffect, useCallback } from "react";
import { useParams, Link } from "react-router-dom";
import Switch from "react-switch";

Expand Down
2 changes: 2 additions & 0 deletions src/components/PostForm.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from "react";

const PostCreateForm = (props) => {
const handleChangeTitle = (e) => {
e.preventDefault();
Expand Down
2 changes: 2 additions & 0 deletions src/components/PostFormButtons.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from "react";

const PostFormButtons = (props) => {
const handleClickCancel = (e) => {
e.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion src/components/PostList.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import uniqid from "uniqid";

import { useState, useEffect } from "react";
import React, { useState, useEffect } from "react";

import AuthService from "../services/auth.service";
import UserService from "../services/user.service";
Expand Down
2 changes: 1 addition & 1 deletion src/components/PostListItem.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useEffect } from "react";
import React, { useState, useEffect } from "react";
import Switch from "react-switch";

import AuthService from "../services/auth.service";
Expand Down
2 changes: 1 addition & 1 deletion src/components/PostUpdate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useEffect } from "react";
import React, { useState, useEffect } from "react";
import { useParams } from "react-router-dom";

import PostForm from "./PostForm";
Expand Down

0 comments on commit bd58728

Please sign in to comment.