Skip to content

Commit

Permalink
Chore: 2차 충돌해결
Browse files Browse the repository at this point in the history
  • Loading branch information
LeHiHo committed Jan 3, 2024
2 parents 9b419e0 + 64549cb commit 9e38fec
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 13 deletions.
106 changes: 102 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/components/DetailSectionTop/DetailSectionTop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
DetailToursInfo,
DetailToursRating,
DetailToursMap,
DetailTourButtons,
DetailToursButtons,
} from '.';

export default function DetailSectionTop() {
Expand All @@ -32,7 +32,7 @@ export default function DetailSectionTop() {
<DetailToursInfo infoData={detailQuery.data} />
<DetailToursRating reviewData={reviewQuery.data.data.data} />
<DetailToursMap mapData={detailQuery.data} />
<DetailTourButtons />
<DetailToursButtons />
</div>
) : null;
}
6 changes: 3 additions & 3 deletions src/components/DetailSectionTop/DetailToursButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { ReactComponent as CalendarIcon } from '@assets/images/Calendar.svg';

export default function DetailTourButtons() {
return (
<div className="mt-2 flex w-full items-center justify-between py-2.5">
<button className="flex h-[53px] w-[157.5px] items-center justify-center gap-2 rounded-lg border border-solid border-gray3 p-2">
<div className="mt-2 flex w-full items-center justify-between gap-3 py-2.5">
<button className="flex h-[53px] w-1/2 items-center justify-center gap-2 rounded-lg border border-solid border-gray3 p-2">
<CalendarIcon />
<span className="text-sm">일정 추가</span>
</button>
<button className="flex h-[53px] w-[157.5px] items-center justify-center gap-2 rounded-lg border border-solid border-gray3 p-2">
<button className="flex h-[53px] w-1/2 items-center justify-center gap-2 rounded-lg border border-solid border-gray3 p-2">
<PenIcon />
<span className="text-sm">리뷰 쓰기</span>
</button>
Expand Down
4 changes: 2 additions & 2 deletions src/components/DetailSectionTop/DetailToursMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default function DetailToursMap({ mapData }: DetailToursMapProps) {
const [isMapVisible, setIsMapVisible] = useState<boolean>(false);

const MapStyle = {
width: '372px',
height: isMapVisible ? 0 : '150px',
width: '100%',
height: isMapVisible ? 0 : '180px',
marginTop: isMapVisible ? '15px' : '15px',
marginBottom: isMapVisible ? '15px' : '15px',
transition: 'height 0.3s ease-in-out',
Expand Down
5 changes: 3 additions & 2 deletions src/components/DetailSectionTop/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import DetailToursInfo from './DetailToursInfo';
import DetailToursRating from './DetailToursRating';
import DetailToursMap from './DetailToursMap';
import DetailTourButtons from './DetailToursButtons';
import DetailToursButtons from './DetailToursButtons';


export {
DetailToursInfo,
DetailToursRating,
DetailToursMap,
DetailTourButtons,
DetailToursButtons,
};

0 comments on commit 9e38fec

Please sign in to comment.