Skip to content

Commit c16e854

Browse files
committed
Add the host to fetch data from test-2
1 parent 58b93f6 commit c16e854

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
2424

25-
accessToken
25+
accessToken
26+
/data

src/components/Content.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { css } from "@emotion/react";
1010
import ClipLoader from "react-spinners/ClipLoader";
1111

1212
function Content() {
13-
const url = "http://localhost:8000";
13+
const url = "https://momo-japan-market.com/products";
1414
const initState = {
1515
showAll: true,
1616
showBicycle: false,

src/components/ProductDetail.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import logo from "../logos/logo_trans.svg";
1111
const ProductDetail = () => {
1212
const [form, setForm] = useState(false);
1313
const { id } = useParams();
14-
const url = "http://localhost:8000/products?id=" + id;
14+
const url = "https://momo-japan-market.com/product?id=" + id;
1515
const { data: product, isPending, error } = useFetch(url);
1616
const override = css`
1717
display: block;

0 commit comments

Comments
 (0)