Skip to content

Commit 56ed83d

Browse files
committed
[Chore] tuist graph 업데이트
1 parent 4958478 commit 56ed83d

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

TnT/Projects/Presentation/Sources/Home/Trainer/TrainerHomeView.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ public struct TrainerHomeView: View {
114114
ForEach(record.lessons, id: \.id) { record in
115115
SessionCellView(session: record) {
116116
send(.tapSessionCompleted(id: record.ptLessonId))
117+
} onTap: {
118+
// TODO: - 트레이너 기록 추가
117119
}
118120
}
119121
} else {
@@ -131,9 +133,10 @@ public struct TrainerHomeView: View {
131133
.frame(width: 126, height: 58)
132134
.overlay {
133135
HStack(spacing: 4) {
134-
Image(.icnPlusEmpty)
136+
Image(.icnPlus)
135137
.resizable()
136138
.frame(width: 24, height: 24)
139+
.tint(Color.common0)
137140
Text("수업추가")
138141
.typographyStyle(.body1Medium, with: .neutral50)
139142
}
@@ -215,6 +218,7 @@ extension TrainerHomeView {
215218
struct SessionCellView: View {
216219
var session: SessonEntity
217220
var onTapComplete: () -> Void
221+
var onTap: (() -> Void)?
218222

219223
var body: some View {
220224
HStack(spacing: 20) {
@@ -237,7 +241,7 @@ extension TrainerHomeView {
237241

238242
if session.isCompleted {
239243
Button {
240-
//
244+
onTap?()
241245
} label: {
242246
HStack(spacing: 4) {
243247
Image(.icnWriteWhite)

TnT/Projects/TnTApp/Sources/ContentView.swift

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,19 @@ import ComposableArchitecture
1212

1313
struct ContentView: View {
1414
var body: some View {
15-
Text("")
15+
TrainerHomeView(store: Store(initialState: TrainerHomeFeature.State(), reducer: {
16+
TrainerHomeFeature()
17+
}))
18+
// TrainerMypageView(store: Store(initialState: TrainerMypageFeature.State(
19+
// userName: "홍길동",
20+
// userImageUrl: nil,
21+
// studentCount: 10,
22+
// oldStudentCount: 5,
23+
// appPushNotificationAllowed: true,
24+
// versionInfo: "1.0.0"
25+
// ), reducer: {
26+
// TrainerMypageFeature()
27+
// }))
1628
}
1729
}
1830

TnT/graph.png

16 KB
Loading

0 commit comments

Comments
 (0)