Skip to content

Commit f628a68

Browse files
author
John Wesely
committed
resolve merge conflix
2 parents 5509ac5 + 454827d commit f628a68

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/Filament/Resources/FilamentFormResource.php

+11-8
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
namespace Tapp\FilamentFormBuilder\Filament\Resources;
44

55
use Filament\Forms;
6-
use Filament\Tables;
76
use Filament\Forms\Form;
87
use Filament\Tables\Table;
98
use Filament\Resources\Resource;
109
use Filament\Forms\Components\Toggle;
10+
use Filament\Tables\Actions\EditAction;
1111
use Filament\Tables\Columns\IconColumn;
12+
use Filament\Tables\Columns\TextColumn;
13+
use Filament\Tables\Actions\BulkActionGroup;
14+
use Filament\Tables\Actions\DeleteBulkAction;
1215
use Tapp\FilamentFormBuilder\Models\FilamentForm;
1316
use Tapp\FilamentFormBuilder\Filament\Resources\FilamentFormResource\Pages\EditFilamentForm;
1417
use Tapp\FilamentFormBuilder\Filament\Resources\FilamentFormResource\Pages\ListFilamentForms;
@@ -67,18 +70,18 @@ public static function table(Table $table): Table
6770
{
6871
return $table
6972
->columns([
70-
Tables\Columns\TextColumn::make('created_at')
73+
TextColumn::make('created_at')
7174
->dateTime()
7275
->sortable()
7376
->toggleable(isToggledHiddenByDefault: true),
74-
Tables\Columns\TextColumn::make('updated_at')
77+
TextColumn::make('updated_at')
7578
->dateTime()
7679
->sortable()
7780
->toggleable(isToggledHiddenByDefault: true),
78-
Tables\Columns\TextColumn::make('name')
81+
TextColumn::make('name')
7982
->sortable()
8083
->searchable(),
81-
Tables\Columns\TextColumn::make('form_link')
84+
TextColumn::make('form_link')
8285
->copyable()
8386
->copyMessage('Form link copied to clipboard')
8487
->copyMessageDuration(1500),
@@ -93,11 +96,11 @@ public static function table(Table $table): Table
9396
//
9497
])
9598
->actions([
96-
Tables\Actions\EditAction::make(),
99+
EditAction::make(),
97100
])
98101
->bulkActions([
99-
Tables\Actions\BulkActionGroup::make([
100-
Tables\Actions\DeleteBulkAction::make(),
102+
BulkActionGroup::make([
103+
DeleteBulkAction::make(),
101104
]),
102105
])
103106
->emptyStateHeading('No '.config('filament-form-builder.admin-panel-resource-name-plural'));

src/Livewire/FilamentForm/Show.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function mount(FilamentForm $form)
2323
{
2424
$this->filamentForm = $form->load('filamentFormFields');
2525

26-
if (!$this->filamentForm->permit_guest_entries && !auth()->check()) {
26+
if (! $this->filamentForm->permit_guest_entries && ! auth()->check()) {
2727
return redirect('/', 401);
2828
}
2929
}

0 commit comments

Comments
 (0)