Skip to content

Commit

Permalink
Use new FontAwesome 5 class.
Browse files Browse the repository at this point in the history
"fa" is deprecated.
  • Loading branch information
ADmad committed Jul 16, 2020
1 parent 7cc0ecc commit 251a899
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/View/Widget/DateTimeWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ public function render(array $data, ContextInterface $context): string
$datetimePicker += ['data-enable-seconds' => 'true'];
}

$clearIconClass = 'fa fa-times';
$toggleIconClass = 'fa fa-calendar-alt';
$clearIconClass = 'fas fa-times';
$toggleIconClass = 'fas fa-calendar-alt';
if (isset($datetimePicker['iconClass'])) {
$toggleIconClass = $datetimePicker['iconClass'];
unset($datetimePicker['iconClass']);
} elseif ($data['type'] === 'time') {
$toggleIconClass = 'fa fa-clock';
$toggleIconClass = 'fas fa-clock';
}

if ($this->_templates->get('datetimePicker') === null) {
Expand Down

0 comments on commit 251a899

Please sign in to comment.