Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
curtisdelicata committed Oct 13, 2024
1 parent af45c94 commit 317ac67
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace App\Filament\App\Resources\MailchimpCampaignResource\Pages;

use App\Filament\App\Resources\MailchimpCampaignResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;

class CreateMailchimpCampaign extends CreateRecord
{
protected static string $resource = MailchimpCampaignResource::class;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace App\Filament\App\Resources\MailchimpCampaignResource\Pages;

use App\Filament\App\Resources\MailchimpCampaignResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;

class EditMailchimpCampaign extends EditRecord
{
protected static string $resource = MailchimpCampaignResource::class;

protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace App\Filament\App\Resources\MailchimpCampaignResource\Pages;

use App\Filament\App\Resources\MailchimpCampaignResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;

class ListMailchimpCampaigns extends ListRecords
{
protected static string $resource = MailchimpCampaignResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

namespace App\Filament\App\Resources\MailchimpCampaignResource\Pages;

use App\Filament\App\Resources\MailchimpCampaignResource;
use Filament\Resources\Pages\Page;
use Filament\Pages\Concerns\InteractsWithFormActions;

class ViewMailchimpCampaign extends Page
{
use InteractsWithFormActions;

protected static string $resource = MailchimpCampaignResource::class;

protected static string $view = 'filament.app.resources.mailchimp.view';

public function getTitle(): string
{
return 'MailchimpCampaign ';
}

protected function getHeaderWidgets(): array
{
return [
MailchimpCampaignResource::getWidgets()[0],
];
}

protected function getFooterWidgets(): array
{
return [
MailchimpCampaignResource::getWidgets()[1],
MailchimpCampaignResource::getWidgets()[2],
];
}
}

0 comments on commit 317ac67

Please sign in to comment.