Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hotfix] 바텀 버튼 크기 조정 #45

Merged
merged 12 commits into from
Aug 22, 2024
3 changes: 0 additions & 3 deletions src/main/components/search/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ const Search = (props: Props) => {
await axiosAPI.get(`/api/v2/promotions/search?currentPage=${page}&keyword=${encodeURIComponent(query)}`) :
await axiosSemiSecureAPI.get(`/api/v2/promotions/search/auth?currentPage=${page}&keyword=${encodeURIComponent(query)}`)
const result = res.data.result.promotionList;

console.log(result);

if (result.length === 0) {
setStop(true); // 더 이상 데이터가 없으면 중지 상태로 설정
Expand Down Expand Up @@ -111,7 +109,6 @@ const Search = (props: Props) => {
const responseLikeStatus = await axiosSemiSecureAPI.get(`/api/likes/promotion/${id}`);
promotionLike = responseLikeStatus.data.isSuccess ? responseLikeStatus.data.result : false;
} catch (error) {
console.log(error)
promotionLike = false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/promotion/components/promotionview/bottombutton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const BottomButton = (props: Props) => {
},[])

return (
<div style={backgroundStyle} className='fixed w-full md:w-768px bottom-0 h-100px'>
<div className='flex h-full justify-end items-end px-4 pb-54px flex-end'>
<div style={backgroundStyle} className='fixed bottom-0 w-full h-100px'>
<div className='flex items-end justify-end h-full px-4 pb-54px flex-end'>
<button
onClick={onClick}
className={`w-full ${disabled ? 'bg-text-disabled' : 'bg-primary'} h-46px rounded-xl text-system-white text-plg`} disabled={disabled}>
Expand Down
1 change: 0 additions & 1 deletion src/promotion/promotionmain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const PromotionView = (props: Props) => {
await axiosSemiSecureAPI.get(`/api/v2/promotions/${id}/auth`)
:
await axiosAPI.get(`/api/v2/promotions/${id}`);
console.log(response);
if (response.data.isSuccess === true) {
const result = response.data.result;
setResult(result);
Expand Down
Loading