Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/SCBJ-7/SCBJ-FE into feature/#…
Browse files Browse the repository at this point in the history
…212-saledetail-api
  • Loading branch information
chaeminseok committed Jan 25, 2024
2 parents 14fb434 + e3b5f17 commit 7172da7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/apis/fetchAlarm.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { END_POINTS } from "@constants/api";
import { axiosInstance } from "./axiosInstance";
import axios from "axios";
import { AlarmType } from "@type/alarm";

export const fetchAlarm = async (): Promise<AlarmType[]> => {
const { data } = await axiosInstance.get(END_POINTS.ALARM);
const { data } = await axios.get(END_POINTS.ALARM);
return data.data;
};
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ const ItemCarouselUnit = ({ item }: UnitProps) => {
navigate(PATH.DETAIL_ROOM(hotel[num].id));
};

//정렬 수정
// 터치 이벤트 제한
return (
<S.LocaleWrapper $display={hotel ? "block" : "none"}>
{hotel[0] && (
<S.ItemUnit onClick={() => onClickHandler(0)}>
<S.ItemUnit
onClick={() => onClickHandler(0)}
onTouchStart={(e) => e.preventDefault()}
>
<img src={hotel[0].imageUrl} onClick={() => onClickHandler(0)} />
<div className="item-info">
<div className="hotel_title">
Expand All @@ -52,7 +55,10 @@ const ItemCarouselUnit = ({ item }: UnitProps) => {
</S.ItemUnit>
)}
{hotel[1] && (
<S.ItemUnit onClick={() => onClickHandler(1)}>
<S.ItemUnit
onClick={() => onClickHandler(1)}
onTouchStart={(e) => e.preventDefault()}
>
<img src={hotel[1].imageUrl} onClick={() => onClickHandler(0)} />
<div className="item-info">
<div className="hotel_title">
Expand Down

0 comments on commit 7172da7

Please sign in to comment.