Skip to content

Commit

Permalink
Merge pull request #262 from softeerbootcamp-2nd/hotfix/image-fetch-e…
Browse files Browse the repository at this point in the history
…rror

[hotfix] debugging 종료
  • Loading branch information
jijiseong authored Aug 15, 2023
2 parents bb15aa6 + 35f4e0c commit b7bcdb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions frontend/src/containers/TrimPage/TrimBannerContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useCallback, useContext, useEffect, useRef, useState } from 'react';
import { css, styled } from 'styled-components';
import { BodyKrMedium3, BodyKrRegular5, HeadingKrRegular2 } from '../../styles/typefaces';
import { flexCenterCss } from '../../utils/commonStyle';
import { IMG_URL, TEST_URL } from '../../utils/apis';
import { IMG_URL } from '../../utils/apis';
import CenterWrapper from '../../components/layout/CenterWrapper';
import Banner from '../../components/common/banner/Banner';
import HmgTag from '../../components/common/hmgTag/HmgTag';
Expand All @@ -21,7 +21,6 @@ export default function TrimBannerContainer() {
const imageUrls = useRef<string[]>([]);
const [imagesLoading, setImagesLoading] = useState(true);

console.log(IMG_URL, TEST_URL);
const handleSelectImg = useCallback(
(idx: number) => {
setSelectedImgIdx(idx);
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/utils/apis.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { VITE_API_URL: BASE_API_URL, VITE_IMG_URL } = import.meta.env;
const { VITE_API_URL: BASE_API_URL, VITE_IMG_URL: BASE_IMG_URL } = import.meta.env;

export const TRIM_API = `${BASE_API_URL}/api/cars/types`;
export const MODEL_TYPE_API = `${BASE_API_URL}/api/modeltypes`;
export const IMG_URL = `${VITE_IMG_URL}`;
export const TEST_URL = `${BASE_API_URL}`;
export const IMG_URL = `${BASE_IMG_URL}`;

0 comments on commit b7bcdb8

Please sign in to comment.