email-verification-prompt view customization

hi, i'm trying to customize the view of Filament\Pages\Auth\EmailVerification\EmailVerificationPrompt i've just created
class EmailVerificationPrompt extends BaseFilamentEmailVerificationPrompt
{
protected static string $view = 'filament.company.pages.auth.email-verification.email-verification-prompt';

}
class EmailVerificationPrompt extends BaseFilamentEmailVerificationPrompt
{
protected static string $view = 'filament.company.pages.auth.email-verification.email-verification-prompt';

}
and this works. But in the view page i've this:
<x-filament-panels::page>
here is my custom content
</x-filament-panels::page>
<x-filament-panels::page>
here is my custom content
</x-filament-panels::page>
but i obtain an error like this: Method App\Filament\Company\Pages\Auth\EmailVerificationPrompt::getCachedSubNavigation does not exist. Any solutions? thanks
2 Replies
toeknee
toeknee2w ago
Sounds like you may have not added the email verification to the panel provider
ocram82
ocram82OP2w ago
yes i do, but i discover that to customize that page you just have to add a <div> or a <section> and put the html you want. Something like this:
<section class="grid auto-cols-fr gap-y-6">

<h1 class="fi-simple-header-heading text-center text-2xl font-bold tracking-tight text-gray-950 dark:text-white">
Title here
</h1>
<p class="text-center font-bold text-sm text-gray-500 dark:text-gray-400">
Text here
</p>
</section>
<section class="grid auto-cols-fr gap-y-6">

<h1 class="fi-simple-header-heading text-center text-2xl font-bold tracking-tight text-gray-950 dark:text-white">
Title here
</h1>
<p class="text-center font-bold text-sm text-gray-500 dark:text-gray-400">
Text here
</p>
</section>
and all works

Did you find this page helpful?