Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions app/Livewire/Dashboard/DashboardConverter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace App\Livewire\Dashboard;

use Livewire\Component;

class DashboardConverter extends Component
{
public string $step = 'upload';

public $upload = null;

public ?int $currentFileId = null;

public ?string $uploadError = null;

public function render()
{
return view('livewire.dashboard.dashboard-converter');
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div>
<p>Drop your file here</p>
<p>PNG, JPG, WEBP and PDF supported in beta</p>
</div>
9 changes: 9 additions & 0 deletions tests/Feature/Livewire/DashboardConverterTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

use App\Livewire\Dashboard\DashboardConverter;
use Livewire\Livewire;

it('renders dashboard converter component', function () {
Livewire::test(DashboardConverter::class)
->assertSee('Drop your file here');
});