feat: Add a 'Kembali' action button to the ViewPartner header.
This commit is contained in:
parent
03bf59e11e
commit
38533fa246
@ -3,9 +3,21 @@
|
||||
namespace App\Filament\Resources\Manage\Partners\Pages;
|
||||
|
||||
use App\Filament\Resources\Manage\Partners\PartnerResource;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Resources\Pages\ViewRecord;
|
||||
|
||||
class ViewPartner extends ViewRecord
|
||||
{
|
||||
protected static string $resource = PartnerResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
Action::make('back')
|
||||
->label('Kembali')
|
||||
->url(ManagePartners::getUrl())
|
||||
->outlined()
|
||||
->color('secondary'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user