Skip to content

Commit

Permalink
fix: 이미지 URL 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
solo5star committed Oct 5, 2023
1 parent a7d527f commit d249278
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/pages/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import styled from 'styled-components';
import SearchInput from '../components/SearchInput';
import useSearchCafes from '../hooks/useSearchCafes';
import type { Theme } from '../styles/theme';
import Resource from '../utils/Resource';

const SearchPage = () => {
const [searchParams, setSearchParams] = useSearchParams();
Expand Down Expand Up @@ -82,7 +83,7 @@ const SearchPage = () => {
{searchedCafes.map((cafe) => (
<Link key={cafe.id} to={`/cafes/${cafe.id}`}>
<CafeListItem>
<CafeImage src={cafe.image} />
<CafeImage src={Resource.getImageUrl({ size: '500', filename: cafe.image })} />
<CafeInfo>
<CafeName>{cafe.name}</CafeName>
<CafeAddress>{cafe.address}</CafeAddress>
Expand Down

0 comments on commit d249278

Please sign in to comment.