Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Refactor Livewire/Boarding/Index.php and resources/views/livewire/boarding/index.blade.php

Andras Bacsai995c303f2714
diff --git a/app/Livewire/Boarding/Index.php b/app/Livewire/Boarding/Index.php
index 110222fb44..14524a46f2 100644
--- a/app/Livewire/Boarding/Index.php
+++ b/app/Livewire/Boarding/Index.php
@@ -15,14 +15,11 @@ class Index extends Component
{
protected $listeners = ['serverInstalled' => 'validateServer'];
- #[Url()]
public string $state = 'welcome';
- #[Url()]
public ?string $selectedServerType = null;
public ?Collection $privateKeys = null;
- #[Url()]
public ?int $selectedExistingPrivateKey = null;
public ?string $privateKeyType = null;
public ?string $privateKey = null;
@@ -33,7 +30,6 @@ class Index extends Component
public ?Collection $servers = null;
- #[Url()]
public ?int $selectedExistingServer = null;
public ?string $remoteServerName = null;
public ?string $remoteServerDescription = null;
@@ -46,7 +42,6 @@ class Index extends Component
public Collection $projects;
- #[Url()]
public ?int $selectedProject = null;
public ?Project $createdProject = null;
diff --git a/resources/views/livewire/boarding/index.blade.php b/resources/views/livewire/boarding/index.blade.php
index c254a003b0..d1b9f31604 100644
--- a/resources/views/livewire/boarding/index.blade.php
+++ b/resources/views/livewire/boarding/index.blade.php
@@ -329,14 +329,17 @@
</div>
<div class="flex flex-col justify-center gap-4 pt-4 lg:gap-2 lg:flex">
<div class="flex justify-center w-full gap-2">
- <x-forms.button wire:click='skipBoarding'>Skip onboarding</x-forms.button>
- <x-forms.button wire:click='restartBoarding'>Restart onboarding</x-forms.button>
+ <div class="cursor-pointer hover:underline dark:hover:text-white" wire:click='skipBoarding'>Skip
+ onboarding</div>
+ <div class="cursor-pointer hover:underline dark:hover:text-white" wire:click='restartBoarding'>Restart
+ onboarding</div>
</div>
<x-modal-input title="How can we help?">
<x-slot:content>
- <x-forms.button class="w-full" title="Send us feedback or get help!">
+ <div class="w-full text-center cursor-pointer hover:underline dark:hover:text-white"
+ title="Send us feedback or get help!">
Feedback
- </x-forms.button>
+ </div>
</x-slot:content>
<livewire:help />
</x-modal-input>