Update 02-text.md

Update `$entry` to `$component` for injection example.
This commit is contained in:
Adam Weston
2023-10-06 09:08:05 -04:00
committed by GitHub
parent 32052f2199
commit aeea6c24d3
@@ -100,10 +100,10 @@ use Filament\Infolists\Components\TextEntry;
TextEntry::make('description')
->limit(50)
->tooltip(function (TextEntry $entry): ?string {
$state = $entry->getState();
->tooltip(function (TextEntry $component): ?string {
$state = $component->getState();
if (strlen($state) <= $entry->getCharacterLimit()) {
if (strlen($state) <= $component->getCharacterLimit()) {
return null;
}