From 84647cf4ffbf35d2c2ed61e78a840be78f474d41 Mon Sep 17 00:00:00 2001 From: Ryan Scherler Date: Sat, 30 Jan 2021 18:14:29 -0800 Subject: [PATCH] misc. fix for fields --- src/Fields/Date.php | 2 -- src/View/Components/Image.php | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Fields/Date.php b/src/Fields/Date.php index 94381f3e2c..a6641180f6 100644 --- a/src/Fields/Date.php +++ b/src/Fields/Date.php @@ -6,8 +6,6 @@ class Date extends Field { public $config = [ 'altInput' => true, - 'altFormat' => 'F j, Y', - 'dateFormat' => 'Y-m-d', ]; public function config(array $config) diff --git a/src/View/Components/Image.php b/src/View/Components/Image.php index 35e8b9e69e..e62ec88607 100644 --- a/src/View/Components/Image.php +++ b/src/View/Components/Image.php @@ -2,7 +2,7 @@ namespace Filament\View\Components; -use Filament\Filament; +use Filament\FilamentManager; use Illuminate\View\Component; class Image extends Component @@ -27,7 +27,7 @@ class Image extends Component public function src($dpr = 1) { - return Filament::image($this->src, array_merge(['dpr' => $dpr], $this->manipulations)); + return FilamentManager::image($this->src, array_merge(['dpr' => $dpr], $this->manipulations)); } public function render()