Skip to content

Commit

Permalink
feat: 다운로드 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
dvp-tae committed Nov 28, 2024
1 parent 4cbf3dd commit 47f0669
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
8 changes: 1 addition & 7 deletions src/components/Main/Analysis/TicketRecommend/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ import { useGetRecommendClacoTicket } from "@/hooks/queries";
import { useNavigate } from "react-router-dom";

export const TicketRecommend = () => {
const { data, isLoading } = useGetRecommendClacoTicket();

useEffect(() => {
if (data && !isLoading) {
console.log(data);
}
}, [data, isLoading]);
const { data } = useGetRecommendClacoTicket();

const [touchStart, setTouchStart] = useState<{ x: number; y: number } | null>(
null
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Browse/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export const BrowsePage = () => {
<>
{!isSearch ? (
<div
className="w-full h-1 bg-red-300"
className="h-1"
ref={
showSearchResult
? searchRef
Expand Down
4 changes: 2 additions & 2 deletions src/pages/TicketCreate/Download/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const TicketDownloadPage = () => {
const [loadingState, setLoadingState] = useState<boolean>(true);
const posterUrl = (localStorage.getItem("poster") || "").replace(
/^"|"$/g,
"",
""
);

const { mutate: uploadTicketImage, data: ticketData } = usePutTicketImage();
Expand Down Expand Up @@ -74,7 +74,7 @@ export const TicketDownloadPage = () => {
onSuccess: () => {
setIsChecked(true);
},
},
}
);
} catch (error) {
console.error("티켓 이미지 변환/업로드 실패:", error);
Expand Down

0 comments on commit 47f0669

Please sign in to comment.