public function form(Form $form): Form
{
return $form
->schema([
Section::make('Sent to existing users when they get added to a new group')
->description('Add User Group')
->schema(
collect($this->notification['options'])->map(function ($option) {
return RichEditor::make("formData.{$option['slug']}")
->label($option['name'])
->required()
->columnSpanFull();
})->toArray()
),
View::make('filament.pages.components.edit-notification-footer'),
Action::make('update')
->label('Update')
->requiresConfirmation()
]);
}
This is my form function and I get this error Filament\Forms\ComponentContainer::Filament\Forms\Concerns\{closure}(): Argument #1 ($component) must be of type Filament\Forms\Components\Component, Filament\Forms\Components\Actions\Action given
How do I properly make a save button for the form? adding Action::make causes an error