Skip to content

Commit

Permalink
[Chore] #471 - Resolve Conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jim4020key committed Aug 12, 2023
1 parent 6536aa1 commit d2c29f7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,11 @@ extension ExploreShortcutView {

ForEach(Array(shortcuts.enumerated()), id:\.offset) { index, shortcut in
if index < 3 {
let data = NavigationReadShortcutType(shortcutID:shortcut.id,
navigationParentView: .shortcuts)

ShortcutCell(shortcut: shortcut,
rankNumber: index + 1,
navigationParentView: .shortcuts)
.navigationLinkRouter(data: data)
.navigationLinkRouter(data: shortcut)
}
}
.background(Color.shortcutsZipBackground)
Expand All @@ -158,15 +156,11 @@ extension ExploreShortcutView {
ScrollView(.horizontal, showsIndicators: false) {
HStack {
ForEach(viewModel.fetchShortcuts(by: category).prefix(7), id: \.self) { shortcut in
let data = NavigationReadShortcutType(
shortcutID: shortcut.id,
navigationParentView: .shortcuts)

ShortcutCardCell(
categoryShortcutIcon: shortcut.sfSymbol,
categoryShortcutName: shortcut.title,
categoryShortcutColor: shortcut.color)
.navigationLinkRouter(data: data)
ShortcutCardCell(categoryShortcutIcon: shortcut.sfSymbol,
categoryShortcutName: shortcut.title,
categoryShortcutColor: shortcut.color)
.navigationLinkRouter(data: shortcut)
}
}
.padding(.horizontal, 16)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ struct ListCategoryShortcutView: View {

LazyVStack(spacing: 0) {
ForEach(viewModel.shortcuts, id: \.self) { shortcut in
let data = NavigationReadShortcutType(shortcut: shortcut,
shortcutID: shortcut.id,
navigationParentView: .shortcuts)
ShortcutCell(shortcut: shortcut,
navigationParentView: .shortcuts)
.navigationLinkRouter(data: data)
.listRowInsets(EdgeInsets())
.listRowSeparator(.hidden)

ShortcutCell(shortcut: shortcut, navigationParentView: .shortcuts)
.navigationLinkRouter(data: shortcut)
.listRowInsets(EdgeInsets())
.listRowSeparator(.hidden)

}
}
.padding(.bottom, 44)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@ struct ListShortcutView: View {
@ViewBuilder
private func makeShortcutCellList(_ shortcuts: [Shortcuts]) -> some View {
ForEach(shortcuts, id: \.self) { shortcut in
let navigationData = NavigationReadShortcutType(shortcut: shortcut,
shortcutID: shortcut.id,
navigationParentView: .shortcuts)

ShortcutCell(shortcut: shortcut,
sectionType: viewModel.sectionType,
navigationParentView: .shortcuts)
.navigationLinkRouter(data: navigationData)
.navigationLinkRouter(data: shortcut)

}
}
Expand Down

0 comments on commit d2c29f7

Please sign in to comment.