Skip to content

Commit

Permalink
fix: resolved all text area import instances
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Aug 11, 2024
1 parent e6763bc commit 90eb367
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions app/Filament/Dashboard/Resources/CitationResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use App\Models\Citation;
use Closure;
use Filament\Forms\Components\Section;
use Filament\Forms\Components\TextArea;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Forms\Get;
Expand Down Expand Up @@ -104,7 +104,7 @@ public static function form(Form $form): Form
return true;
}
}),
TextArea::make('citation_text')
Textarea::make('citation_text')
->label('Citation text / URL')
->disabled(function ($get, string $operation) {
if ($operation = 'edit' || $get('failMessage') == 'No citation found. Please fill in the details manually') {
Expand Down
4 changes: 2 additions & 2 deletions app/Filament/Dashboard/Resources/CollectionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Filament\Forms\Components\Section;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\SpatieTagsInput;
use Filament\Forms\Components\TextArea;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Forms\Set;
Expand Down Expand Up @@ -53,7 +53,7 @@ public static function form(Form $form): Form
->afterStateUpdated(fn (Set $set, ?string $state) => $set('slug', Str::slug($state))
),
TextInput::make('slug'),
TextArea::make('description'),
Textarea::make('description'),
TextInput::make('url'),
]),
Section::make('Meta data')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ public function form(Form $form): Form
Forms\Components\TextInput::make('molecular_formula')
->required()
->maxLength(255),
Forms\Components\TextArea::make('structural_comments')
Forms\Components\Textarea::make('structural_comments')
->required(),
Forms\Components\TextInput::make('geo_location')
->required()
->maxLength(255),
Forms\Components\TextInput::make('location')
->required()
->maxLength(255),
Forms\Components\TextArea::make('errors')
Forms\Components\Textarea::make('errors')
->required(),
Forms\Components\TextInput::make('standardized_canonical_smiles')
->required()
Expand Down
8 changes: 4 additions & 4 deletions app/Filament/Dashboard/Resources/MoleculeResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use App\Filament\Dashboard\Resources\MoleculeResource\Widgets\MoleculeStats;
use App\Models\Molecule;
use Archilex\AdvancedTables\Filters\AdvancedFilter;
use Filament\Forms\Components\TextArea;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Resources\Resource;
Expand Down Expand Up @@ -58,7 +58,7 @@ public static function form(Form $form): Form
->label('Canonical SMILES'),
TextInput::make('murcko_framework')
->label('Murcko Framework'),
TextArea::make('synonyms'),
Textarea::make('synonyms'),
]);
}

Expand Down Expand Up @@ -116,7 +116,7 @@ public static function table(Table $table): Table
return $record['active'] ? 'Deactivate' : 'Activate';
})
->form([
TextArea::make('reason')
Textarea::make('reason')
->required(function (Molecule $record) {
return $record['active'];
}),
Expand Down Expand Up @@ -148,7 +148,7 @@ public static function table(Table $table): Table
Tables\Actions\DeleteBulkAction::make(),
BulkAction::make('Active Status Change')
->form([
TextArea::make('reason')
Textarea::make('reason')
->required(),
])
->action(function (array $data, Collection $records): void {
Expand Down
8 changes: 4 additions & 4 deletions app/Filament/Resources/LicenseResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use App\Filament\Resources\LicenseResource\Pages;
use App\Filament\Resources\LicenseResource\RelationManagers\CollectionsRelationManager;
use App\Models\License;
use Filament\Forms\Components\TextArea;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Resources\Resource;
Expand All @@ -29,9 +29,9 @@ public static function form(Form $form): Form
TextInput::make('title'),
TextInput::make('spdx_id'),
TextInput::make('url'),
TextArea::make('description'),
TextArea::make('body'),
TextArea::make('category'),
Textarea::make('description'),
Textarea::make('body'),
Textarea::make('category'),
])->columns(1);
}

Expand Down

0 comments on commit 90eb367

Please sign in to comment.