Skip to content

Commit

Permalink
[Chore] #61 - 불필요한 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
binisnil committed Nov 24, 2024
1 parent eaf1eb4 commit 52b4a0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ final class FeedBottomView: UIView {
button.translatesAutoresizingMaskIntoConstraints = false
button.setImage(ImageLiterals.Icon.icRipple, for: .normal)
button.contentHorizontalAlignment = .center
button.isEnabled = false
return button
}()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import SnapKit
import Lottie

final class FeedBottomWriteView: UIView {

// MARK: - Properties


// MARK: - UI Components

private lazy var tabLottieAnimationView: LottieAnimationView = {
Expand Down Expand Up @@ -57,7 +55,6 @@ final class FeedBottomWriteView: UIView {
setUI()
setHierarchy()
setLayout()
setAddTarget()
}

@available(*, unavailable)
Expand Down Expand Up @@ -105,17 +102,8 @@ extension FeedBottomWriteView {
}
}

func setPlaceholder(nickname: String) {
func setPlaceholder(nickname: String?) {
placeholderLabel.isHidden = false
placeholderLabel.text = nickname + StringLiterals.Home.placeholder
}

private func setAddTarget() {
uploadButton.addTarget(self, action: #selector(postButtonDidTapped), for: .touchUpInside)
}

@objc
private func postButtonDidTapped() {
uploadButton.isEnabled = false
placeholderLabel.text = nickname ?? "" + StringLiterals.Home.placeholder
}
}

0 comments on commit 52b4a0b

Please sign in to comment.