Skip to content

Commit

Permalink
Refactoring src/Screen/Layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
bald-cat committed Jan 25, 2025
1 parent b5fb1d8 commit 0a9e1e2
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 19 deletions.
4 changes: 1 addition & 3 deletions src/Screen/Layouts/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
// todo: use Commander trait?
class Card extends Content
{
/**
* @var string
*/

protected string $template = 'platform::layouts.card';

/**
Expand Down
4 changes: 0 additions & 4 deletions src/Screen/Layouts/Chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ abstract class Chart extends Layout
public const TYPE_PERCENTAGE = 'percentage';
public const TYPE_AXIS_MIXED = 'axis-mixed';

/**
* The Main template to display the layer
* Represents the view() argument.
*/
protected string $template = 'platform::layouts.chart';

protected ?string $description = null;
Expand Down
4 changes: 1 addition & 3 deletions src/Screen/Layouts/Legend.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
*/
abstract class Legend extends Layout
{
/**
* @var string
*/

protected string $template = 'platform::layouts.legend';

/**
Expand Down
4 changes: 1 addition & 3 deletions src/Screen/Layouts/Persona.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

class Persona extends Content
{
/**
* @var string
*/

protected string $template = 'platform::layouts.persona';

public function render(Personable $user): View
Expand Down
4 changes: 1 addition & 3 deletions src/Screen/Layouts/Rows.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
*/
abstract class Rows extends Layout
{
/**
* @var string
*/

protected string $template = 'platform::layouts.row';

/**
Expand Down
4 changes: 1 addition & 3 deletions src/Screen/Layouts/Sortable.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

abstract class Sortable extends Layout
{
/**
* @var string
*/

protected string $template = 'platform::layouts.sortable';

/**
Expand Down

0 comments on commit 0a9e1e2

Please sign in to comment.