refactor: replace textarea with markdown editor for onboarding description and enhance modal content rendering
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
namespace Paymenter\Extensions\Others\Onboarding\Admin\Resources;
|
||||
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Forms\Components\MarkdownEditor;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\Toggle;
|
||||
use Filament\Forms\Form;
|
||||
@@ -43,11 +43,11 @@ class OnboardingResource extends Resource
|
||||
->maxLength(255)
|
||||
->placeholder('Welcome to Our Platform'),
|
||||
|
||||
Textarea::make('description')
|
||||
MarkdownEditor::make('description')
|
||||
->label('Description')
|
||||
->required()
|
||||
->rows(4)
|
||||
->placeholder('A brief description of this onboarding step...'),
|
||||
->placeholder('A brief description of this onboarding step...')
|
||||
->helperText('You can use markdown formatting in the description. Use **bold**, *italic*, links, lists, and more.'),
|
||||
|
||||
FileUpload::make('image')
|
||||
->label('Image')
|
||||
|
||||
Reference in New Issue
Block a user