@@ -83,9 +83,7 @@ public extension MainTabFeature {
8383 let . path( . element( _, action: . 카테고리상세( . delegate( . 포킷수정( category) ) ) ) ) :
8484 state. path. append ( . 포킷추가및수정( PokitCategorySettingFeature . State (
8585 type: . 수정,
86- categoryId: category. id,
87- categoryImage: category. categoryImage,
88- categoryName: category. categoryName
86+ category: category
8987 ) ) )
9088 return . none
9189
@@ -196,6 +194,10 @@ public extension MainTabFeature {
196194 let . path( . element( _, action: . 포킷추가및수정( . delegate( . linkCopyDetected( url) ) ) ) ) ,
197195 let . path( . element( _, action: . 링크목록( . delegate( . linkCopyDetected( url) ) ) ) ) :
198196 return . run { send in await send ( . inner( . linkCopySuccess( url) ) , animation: . pokitSpring) }
197+ /// 바텀메세지
198+ case let . pokit( . delegate( . linkPopup( text) ) ) :
199+ state. linkPopup = . text( title: text)
200+ return . none
199201 /// 링크목록 `안읽음`
200202 case . remind( . delegate( . 링크목록_안읽음) ) :
201203 state. path. append ( . 링크목록( ContentListFeature . State ( contentType: . unread) ) )
@@ -231,14 +233,24 @@ public extension MainTabFeature {
231233 return . none
232234
233235 case let . path( . element( _, action: . 링크공유( . delegate( . 공유받은_카테고리_추가( sharedCategory) ) ) ) ) :
234- state. path. append ( . 포킷추가및수정( PokitCategorySettingFeature . State (
235- type: . 공유추가,
236- categoryId: sharedCategory. categoryId,
236+ let category = BaseCategoryItem (
237+ id: sharedCategory. categoryId,
238+ userId: 0 ,
239+ categoryName: sharedCategory. categoryName,
237240 categoryImage: BaseCategoryImage (
238241 imageId: sharedCategory. categoryImageId,
239242 imageURL: sharedCategory. categoryImageUrl
240243 ) ,
241- categoryName: sharedCategory. categoryName
244+ contentCount: sharedCategory. contentCount,
245+ createdAt: " " ,
246+ openType: . 공개,
247+ keywordType: . default,
248+ userCount: 0 ,
249+ isFavorite: false
250+ )
251+ state. path. append ( . 포킷추가및수정( PokitCategorySettingFeature . State (
252+ type: . 공유추가,
253+ category: category
242254 ) ) )
243255 return . none
244256 case . path( . element( _, action: . 알림함( . delegate( . alertBoxDismiss) ) ) ) :
0 commit comments