Skip to content

Commit

Permalink
Update RenderCake.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ieun32 authored Aug 31, 2024
1 parent 4944e2d commit 4f1338f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/client/src/components/cake/RenderCake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type RenderedCakeProps = {
handleClick?: (index: number) => void;
};

const baseUrl = 'https://kkoo.s3.ap-northeast-2.amazonaws.com/images/cakes/avif/';
const baseUrl = 'https://kkoo.s3.ap-northeast-2.amazonaws.com/images/cakes/webp/';

const RenderCake: React.FC<RenderedCakeProps> = ({
sheetColor,
Expand All @@ -23,8 +23,8 @@ const RenderCake: React.FC<RenderedCakeProps> = ({
}) => {
sheetColor = sheetColor ?? 'chocolate';
creamColor = creamColor ?? 'white';
const sheetSrc = baseUrl + 'sheet_' + sheetColor + '.avif';
const creamSrc = baseUrl + 'cream_' + creamColor + '.avif';
const sheetSrc = baseUrl + 'sheet_' + sheetColor + '.webp';
const creamSrc = baseUrl + 'cream_' + creamColor + '.webp';

return (
<SvgContainer>
Expand Down

0 comments on commit 4f1338f

Please sign in to comment.