Skip to content

Commit

Permalink
feat: GNB button hover 스케일 조절
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieonn committed Dec 27, 2024
1 parent 4055d30 commit 5e0af3a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/button/CustomButton/CustomButton.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const Button = styled.button<{
background-color: ${colors.blue200};
transform: translateY(-1px);
transform: scale(
1.05
1.005
); /* Scale up without affecting surrounding elements */
z-index: 2; /* Ensure it's on top */
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ interface LastStepProps {
key: keyof SendEstimateProposalRequest,
value: any[],
) => void;
setShowToast: (value: boolean) => void;
}

export default function CustomizeGrooming({
onSubmit,
inputData,
handleChange,
handleArrayChange,
setShowToast,
}: LastStepProps) {
const [desiredCostError, setDesiredCostError] = useState("");
const [selectedBodyIndex, setSelectedBodyIndex] = useState<number | null>(
Expand Down
5 changes: 4 additions & 1 deletion src/pages/customer/request/components/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
import { ROUTE } from "../../../../../constants/routes";
import Loading from "../../../../../components/page/sign-up/Loading";
import { SendEstimateProposalRequest } from "../../../../../types/customer/bidding";
import Toast from "../../../../../components/toast";

interface SearchStepProps {
onNext: () => void;
Expand All @@ -44,7 +45,7 @@ export default function Search({ onNext, handleArrayChange }: SearchStepProps) {
const [isFetched, setIsFetched] = useState(false);
const navigate = useNavigate();
const [sortOption, setSortOption] = useState<string>("최신순");

const [showToast, setShowToast] = useState(false);
useEffect(() => {
const fetchData = async () => {
if (!user || !user.userId || isFetched) {
Expand Down Expand Up @@ -221,6 +222,8 @@ export default function Search({ onNext, handleArrayChange }: SearchStepProps) {
) : (
<GNB type="customer" />
)}

{showToast && <Toast>견적 요청이 성공적으로 완료되었습니다!</Toast>}
</>
);
}
5 changes: 2 additions & 3 deletions src/pages/customer/request/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ export default function Request() {
return;
}

// API 호출
await initProcessWithSendEstimateProposal(userId, puppyId, formData);

// 성공 시 이동
alert("요청이 성공적으로 완료되었습니다.");
navigate(ROUTE.customer.mypage.home);
} catch (error) {
Expand All @@ -67,7 +65,8 @@ export default function Request() {
inputData={formData}
handleChange={handleChange}
handleArrayChange={handleArrayChange}
setShowToast={true}
/>
);
}
}
}
2 changes: 0 additions & 2 deletions src/pages/customer/review/history/components/ReviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ const ImageContainer = styled.div`
const Date = styled.div`
width: 100%;
display: flex;
/* justify-content: flex-end; */
/* margin-left: 330px; */
`;

const Info = styled.div`
Expand Down

0 comments on commit 5e0af3a

Please sign in to comment.