Label component states in stories (#3019)
This PR updates the UI component stories to label the various states that they are in. Release Notes: - N/A
This commit is contained in:
@@ -9,8 +9,10 @@ pub struct Facepile {
|
||||
players: Vec<Avatar>,
|
||||
}
|
||||
|
||||
pub fn facepile(players: Vec<Avatar>) -> Facepile {
|
||||
Facepile { players }
|
||||
pub fn facepile<P: Iterator<Item = Avatar>>(players: P) -> Facepile {
|
||||
Facepile {
|
||||
players: players.collect(),
|
||||
}
|
||||
}
|
||||
|
||||
impl Facepile {
|
||||
|
||||
@@ -46,7 +46,7 @@ impl FollowGroup {
|
||||
.px_1()
|
||||
.rounded_lg()
|
||||
.fill(player_bg)
|
||||
.child(facepile(self.players.clone())),
|
||||
.child(facepile(self.players.clone().into_iter())),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user