Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
cholladay0816 committed Dec 21, 2023
2 parents 4279d34 + b1c9726 commit aa2884a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
3 changes: 1 addition & 2 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ public function activeAffiliate(): HasOne|Affiliate
public function getBadges(): array
{
$badges = [];
if($this->activeAffiliate()->count())
{
if($this->activeAffiliate()->count()) {
$badges[] .= 'badges.affiliate';
}
return $badges;
Expand Down
13 changes: 7 additions & 6 deletions app/View/Components/Badges/Affiliate.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ class Affiliate extends Component
*
* @return void
*/
public function __construct(public string $text = 'Affiliate',
public string $title = 'This user is a verified affiliate',
public string $textColor = 'text-blue-700',
public string $bg = 'bg-blue-100',
public string $fill = 'fill-blue-500')
{
public function __construct(
public string $text = 'Affiliate',
public string $title = 'This user is a verified affiliate',
public string $textColor = 'text-blue-700',
public string $bg = 'bg-blue-100',
public string $fill = 'fill-blue-500'
) {
//
}

Expand Down
13 changes: 7 additions & 6 deletions app/View/Components/Badges/Badge.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ class Badge extends Component
*
* @return void
*/
public function __construct(public string $text,
public ?string $title = null,
public string $textColor = 'text-purple-700',
public string $bg = 'bg-purple-100',
public string $fill = 'fill-purple-500')
{
public function __construct(
public string $text,
public ?string $title = null,
public string $textColor = 'text-purple-700',
public string $bg = 'bg-purple-100',
public string $fill = 'fill-purple-500'
) {
//
}

Expand Down

0 comments on commit aa2884a

Please # to comment.