Skip to content

Commit

Permalink
rename to CircularUserIcon from SpeakerIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
mltokky committed Aug 19, 2024
1 parent 19be4c0 commit e611961
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ private actor SpeakerIconInMemoryCache {
}
}

public struct SpeakerIcon: View {
public struct CircularUserIcon: View {
let urlString: String
@State private var iconData: Data?

Expand Down Expand Up @@ -54,6 +54,6 @@ public struct SpeakerIcon: View {
}

#Preview {
SpeakerIcon(urlString: "https://github.com/mltokky.png")
CircularUserIcon(urlString: "https://github.com/mltokky.png")
.frame(width: 32, height: 32)
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public struct TimetableCard: View {

ForEach(timetableItem.speakers, id: \.id) { speaker in
HStack(spacing: 8) {
SpeakerIcon(urlString: speaker.iconUrl)
CircularUserIcon(urlString: speaker.iconUrl)
.frame(width: 32, height: 32)
Text(speaker.name)
.textStyle(.titleSmall)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct ContributorListItemView: View {
}
} label: {
HStack(alignment: .center, spacing: 12) {
SpeakerIcon(urlString: contributor.iconUrl.absoluteString)
CircularUserIcon(urlString: contributor.iconUrl.absoluteString)
.frame(width: 52, height: 52)

Text(contributor.userName)
Expand Down
2 changes: 1 addition & 1 deletion app-ios/Sources/StaffFeature/StaffLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct StaffLabel: View {

var body: some View {
HStack(alignment: .center, spacing: 12) {
SpeakerIcon(urlString: icon.absoluteString)
CircularUserIcon(urlString: icon.absoluteString)
.frame(width: 52, height: 52)
.overlay(
Circle()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public struct TimetableDetailView: View {

ForEach(store.timetableItem.speakers, id: \.id) { speaker in
HStack(spacing: 12) {
SpeakerIcon(urlString: speaker.iconUrl)
CircularUserIcon(urlString: speaker.iconUrl)
.frame(width: 52, height: 52)

VStack(alignment: .leading, spacing: 8) {
Expand Down

0 comments on commit e611961

Please sign in to comment.