Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Malebestia committed Sep 17, 2024
1 parent e23b81f commit f6f86c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Enums/CornerPositionEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ enum CornerPositionEnum: string implements HasColor, HasIcon, HasLabel
case BOTTOM_LEFT = 'bottom-left';
case BOTTOM_RIGHT = 'bottom-right';

public function getLabel(): ?string
public function getLabel(): string
{
// return $this->name;
return trans('ui::corner-position.'.$this->value.'.label');
Expand All @@ -31,7 +31,7 @@ public function getLabel(): ?string
*/
}

public function getColor(): string|array|null
public function getColor(): string|array
{
return match ($this) {
self::TOP_LEFT => 'gray',
Expand All @@ -41,7 +41,7 @@ public function getColor(): string|array|null
};
}

public function getIcon(): ?string
public function getIcon(): string
{
return match ($this) {
self::TOP_LEFT => 'heroicon-o-arrow-up-left',
Expand All @@ -54,7 +54,7 @@ public function getIcon(): ?string
/**
* ---.
*/
public function getCssClass(): ?string
public function getCssClass(): string
{
return match ($this) {
self::TOP_LEFT => 'top-0 left-0',
Expand Down
6 changes: 3 additions & 3 deletions Enums/TableLayoutEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ enum TableLayoutEnum: string implements HasColor, HasIcon, HasLabel
case GRID = 'grid';
case LIST = 'list';

public function getLabel(): ?string
public function getLabel(): string
{
return $this->name;
// return trans('ui::corner-position.'.$this->value.'.label');
Expand All @@ -31,15 +31,15 @@ public function getLabel(): ?string
*/
}

public function getColor(): string|array|null
public function getColor(): string|array
{
return match ($this) {
self::GRID => 'gray',
self::LIST => 'gray',
};
}

public function getIcon(): ?string
public function getIcon(): string
{
return match ($this) {
self::LIST => 'heroicon-o-list-bullet',
Expand Down

0 comments on commit f6f86c5

Please sign in to comment.