Refactored to use new EmployeeCellViewModel

Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
Matt Bruce 2025-01-20 18:49:32 -06:00
parent fa5d16f143
commit 4f072677a5

View File

@ -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
}
}