@@ -34,12 +34,12 @@ public struct NickNameSettingFeature {
3434 get { domain. user }
3535 }
3636
37- var selectedProfile : BaseCategoryImage ? {
37+ var selectedProfile : BaseProfile ? {
3838 get { domain. selectedProfile }
3939 set { domain. selectedProfile = newValue }
4040 }
4141
42- var profileImages : [ BaseCategoryImage ] {
42+ var profileImages : [ BaseProfile ] {
4343 get { domain. imageList }
4444 }
4545
@@ -51,9 +51,9 @@ public struct NickNameSettingFeature {
5151 if let user,
5252 let profile = user. profile {
5353 self . domain = . init(
54- selectedProfile: BaseCategoryImage (
55- imageId : profile. id,
56- imageURL: profile. url
54+ selectedProfile: BaseProfile (
55+ id : profile. id,
56+ imageURL: profile. imageURL
5757 )
5858 )
5959 } else {
@@ -85,7 +85,7 @@ public struct NickNameSettingFeature {
8585 case λλ€μ_ν
μ€νΈ_λ³κ²½λμμλ
8686 case λλ€μ_μ€λ³΅_νμΈ_API_λ°μ( Bool )
8787 case λλ€μ_μ‘°ν_API_λ°μ( BaseUser )
88- case νλ‘ν_λͺ©λ‘_μ‘°ν_API_λ°μ( images: [ BaseCategoryImage ] )
88+ case νλ‘ν_λͺ©λ‘_μ‘°ν_API_λ°μ( images: [ BaseProfile ] )
8989 }
9090
9191 public enum AsyncAction : Equatable {
@@ -95,7 +95,7 @@ public struct NickNameSettingFeature {
9595 }
9696
9797 public enum ScopeAction {
98- case profile( PokitProfileBottomSheet < BaseCategoryImage > . Delegate )
98+ case profile( PokitProfileBottomSheet < BaseProfile > . Delegate )
9999 }
100100
101101 public enum DelegateAction : Equatable { case μμ }
@@ -177,6 +177,7 @@ private extension NickNameSettingFeature {
177177
178178 case . λλ€μμ§μ°κΈ°_λ²νΌ_λλ μλ:
179179 state. domain. nickname = " "
180+ state. buttonState = . disable
180181 return . none
181182
182183 case . νλ‘ν_μ€μ _λ²νΌ_λλ μλ:
@@ -224,7 +225,7 @@ private extension NickNameSettingFeature {
224225 state. domain. user = user
225226 state. domain. nickname = user. nickname
226227 if let profile = user. profile {
227- state. selectedProfile = BaseCategoryImage ( imageId : profile. id, imageURL: profile. url )
228+ state. selectedProfile = BaseProfile ( id : profile. id, imageURL: profile. imageURL )
228229 } else {
229230 state. selectedProfile = nil
230231 }
@@ -266,7 +267,8 @@ private extension NickNameSettingFeature {
266267 case . profile( . μ΄λ―Έμ§_μ ννμλ( let imageInfo) ) :
267268 state. isProfileSheetPresented = false
268269 state. selectedProfile = imageInfo
269- return . none
270+
271+ return . send( . inner( . λλ€μ_ν
μ€νΈ_λ³κ²½λμμλ) )
270272 }
271273 }
272274
0 commit comments