Refactored to use new EmployeeCellViewModel
Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
fa5d16f143
commit
4f072677a5
@ -73,11 +73,11 @@ public class EmployeeTableViewCell: UITableViewCell {
|
||||
emailLabel.text = nil
|
||||
}
|
||||
|
||||
public func configure(with model: Employee) {
|
||||
public func configure(with viewModel: EmployeeCellViewModel) {
|
||||
|
||||
// Bind data to UI components
|
||||
nameLabel.text = model.fullName
|
||||
emailLabel.text = model.emailAddress
|
||||
nameLabel.text = viewModel.fullName
|
||||
emailLabel.text = viewModel.emailAddress
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user