From 0c1bdd6325e6d8b412ebcfb543dc07ac67680d73 Mon Sep 17 00:00:00 2001 From: FadhilP <fadhilpradipta0@gmail.com> Date: Sun, 10 Jan 2021 16:12:30 +0700 Subject: [PATCH 1/2] fix url import --- diskuy/src/CreateThreadForm.js | 2 +- diskuy/src/Threads/PreviewThread.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/diskuy/src/CreateThreadForm.js b/diskuy/src/CreateThreadForm.js index 392dc50..e6f101d 100644 --- a/diskuy/src/CreateThreadForm.js +++ b/diskuy/src/CreateThreadForm.js @@ -3,7 +3,7 @@ import React from "react"; import { useInput } from './hooks/input-hook'; import './CreateThreadForm.css'; import authHeader from './services/auth-header' -import { API_URL } from '../services/api_API_URL' +import { API_URL } from '../services/api_link' export default function CreateThreadForm(props){ const { value: title, bind: bindTitle, reset: resetTitle } = useInput('') diff --git a/diskuy/src/Threads/PreviewThread.js b/diskuy/src/Threads/PreviewThread.js index b79470f..c8cd52e 100644 --- a/diskuy/src/Threads/PreviewThread.js +++ b/diskuy/src/Threads/PreviewThread.js @@ -1,7 +1,7 @@ import React from "react"; import axios from "axios"; -import { API_URL } from '../services/api_API_URL' +import { API_URL } from '../services/api_link' function PreviewThread (props) { -- GitLab From 404b9d819bc1450a4221d71201f690fb9b4a9199 Mon Sep 17 00:00:00 2001 From: FadhilP <fadhilpradipta0@gmail.com> Date: Sun, 10 Jan 2021 16:13:37 +0700 Subject: [PATCH 2/2] fix url import --- diskuy/src/CreateTopicForm.js | 2 +- diskuy/src/Profile/Profile.js | 2 +- diskuy/src/Threads/Post.js | 2 +- diskuy/src/Threads/Thread.js | 2 +- diskuy/src/Topic.js | 2 +- diskuy/src/TopicList.js | 2 +- diskuy/src/services/auth.service.js | 2 +- diskuy/src/services/user.service.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/diskuy/src/CreateTopicForm.js b/diskuy/src/CreateTopicForm.js index c6e5557..416e313 100644 --- a/diskuy/src/CreateTopicForm.js +++ b/diskuy/src/CreateTopicForm.js @@ -3,7 +3,7 @@ import React from "react"; import { useInput } from './hooks/input-hook'; import './CreateThreadForm.css'; import authHeader from './services/auth-header' -import { API_URL } from '../services/api_API_URL' +import { API_URL } from '../services/api_link' export default function CreateTopicForm(props){ const { value: name, bind: bindName, reset: resetName } = useInput('') diff --git a/diskuy/src/Profile/Profile.js b/diskuy/src/Profile/Profile.js index 2b63440..948a3eb 100644 --- a/diskuy/src/Profile/Profile.js +++ b/diskuy/src/Profile/Profile.js @@ -4,7 +4,7 @@ import Button from '../Button'; import ThreadList from '../ThreadList' import axios from "axios"; import AuthService from '../services/auth.service' -import { API_URL } from '../services/api_API_URL' +import { API_URL } from '../services/api_link' import { Link } from "react-router-dom" diff --git a/diskuy/src/Threads/Post.js b/diskuy/src/Threads/Post.js index 71312e7..b273e9d 100644 --- a/diskuy/src/Threads/Post.js +++ b/diskuy/src/Threads/Post.js @@ -6,7 +6,7 @@ import authHeader from '../services/auth-header' import React, { useState, useEffect} from 'react' import { loggedIn } from '../services/loggedInService' import { translate } from '../helpers/time-util'; -import { API_URL } from '../services/api_API_URL' +import { API_URL } from '../services/api_link' export default function Post(props){ const checkType = props.type === 'thread' ? 'threads' : 'post' diff --git a/diskuy/src/Threads/Thread.js b/diskuy/src/Threads/Thread.js index 510deae..1379588 100644 --- a/diskuy/src/Threads/Thread.js +++ b/diskuy/src/Threads/Thread.js @@ -6,7 +6,7 @@ import { useInput } from '../hooks/input-hook'; import axios from 'axios'; import { loggedIn } from '../services/loggedInService' import authHeader from '../services/auth-header' -import { API_URL } from '../services/api_API_URL' +import { API_URL } from '../services/api_link' export default function Thread(props){ const redirect = () => { diff --git a/diskuy/src/Topic.js b/diskuy/src/Topic.js index 578b031..a093cf5 100644 --- a/diskuy/src/Topic.js +++ b/diskuy/src/Topic.js @@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react"; import axios from 'axios' import ThreadList from './ThreadList' import { loggedIn } from './services/loggedInService' -import { API_URL } from '../services/api_API_URL' +import { API_URL } from '../services/api_link' import { Link } from "react-router-dom" export default function Topic(props){ diff --git a/diskuy/src/TopicList.js b/diskuy/src/TopicList.js index 4030114..088966a 100644 --- a/diskuy/src/TopicList.js +++ b/diskuy/src/TopicList.js @@ -1,7 +1,7 @@ import React, { useEffect, useState } from "react"; import axios from 'axios' import { Link } from "react-router-dom" -import { API_URL } from '../services/api_API_URL' +import { API_URL } from '../services/api_link' export default function TopicList(props){ const [topics, setTopics] = useState([]) diff --git a/diskuy/src/services/auth.service.js b/diskuy/src/services/auth.service.js index 0924e3e..6dbe8ec 100644 --- a/diskuy/src/services/auth.service.js +++ b/diskuy/src/services/auth.service.js @@ -1,5 +1,5 @@ import axios from 'axios' -import { API_URL } from '../services/api_API_URL' +import { API_URL } from '../services/api_link' class AuthService { async login(email, password) { diff --git a/diskuy/src/services/user.service.js b/diskuy/src/services/user.service.js index 423bcc8..a37698e 100644 --- a/diskuy/src/services/user.service.js +++ b/diskuy/src/services/user.service.js @@ -1,6 +1,6 @@ import axios from 'axios' import authHeader from './auth-header' -import { API_URL } from '../services/api_API_URL' +import { API_URL } from '../services/api_link' class UserService { getProfile() { -- GitLab