Skip to content

Commit

Permalink
[Fix] kdt-8-4#3, kdt-8-4#4 헤더 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeiis authored Apr 3, 2024
2 parents 2c5dbed + fdc3642 commit 2e9987d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ interface Props {
btnText?: string
iconStyleCase?: IconStyle
buttonStyleCase?: ButtonStyle
onClickFunction?: MouseEventHandler<HTMLButtonElement>
onClickFunction2?: () => void
onClickFunction?: () => void
// onClickFunction2?: () => void
}

export default function Header({
Expand All @@ -21,7 +21,7 @@ export default function Header({
iconStyleCase,
buttonStyleCase,
onClickFunction,
onClickFunction2,
// onClickFunction2,
}: Props) {
const router = useRouter()

Expand All @@ -46,15 +46,15 @@ export default function Header({
<ButtonStore
buttonStyle={buttonStyleCase}
style="mr-[10px] font-NanumSquareRound text-xs"
onClickFunction={() => onClickFunction}>
onClickFunction={onClickFunction}>
{btnText}
</ButtonStore>
) : iconStyleCase ? (
<IconStore
iconStyle={iconStyleCase}
size={17}
style="mr-[10px] cursor-pointer"
onClickFunction={onClickFunction2}
onClickFunction={onClickFunction}
/>
) : (
<div className="hidden"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function ProfileHeader({ userInfo }: Props) {
<Header
title="프로필"
iconStyleCase={IconStyle.SETTING}
onClickFunction2={handleModalOpen}
onClickFunction={handleModalOpen}
/>
{isModalOpen && (
<ProfileEditModal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default function UploadHeader() {
const { accesstoken } = AuthTokenStore()

const handleOnClick = async () => {
console.log('clicked')
if (selectedImages.length === 0) {
alert('업로드 된 사진이 없습니다.')
return // 함수를 여기서 종료하여 더 이상 진행하지 않습니다.
Expand Down Expand Up @@ -58,14 +59,6 @@ export default function UploadHeader() {
}
}

console.log(
`hashTag ${hashTag} ,
category ${category},
content ${content},
temperature ${tempNow},
weatherIcon ${icon}`,
)

return (
<Header
title="등록하기"
Expand Down

0 comments on commit 2e9987d

Please sign in to comment.